require 'hashdiff' class Harmony::Service::Utils::Diff def new_items(old_value, new_value) diff = HashDiff.diff(old_value, new_value) diff.select{|item| item[0] == '+'}.collect{|item| item[2]} end end