lib/rom/changeset/update.rb in rom-changeset-1.0.0.rc1 vs lib/rom/changeset/update.rb in rom-changeset-1.0.0.rc2

- old
+ new

@@ -66,11 +66,11 @@ source = Hash(original) data = pipe.for_diff(__data__) data_tuple = data.to_a data_keys = data.keys & source.keys - new_tuple = data_tuple.to_a.select { |(k, _)| data_keys.include?(k) } - ori_tuple = source.to_a.select { |(k, _)| data_keys.include?(k) } + new_tuple = data_tuple.to_a.select { |k, _| data_keys.include?(k) } + ori_tuple = source.to_a.select { |k, _| data_keys.include?(k) } Hash[new_tuple - (new_tuple & ori_tuple)] end end end