Created
November 30, 2016 19:32
-
-
Save kingscott/b83fb9b067445b28eed535de4b41e998 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
normalized_changes = [].select do |k| | |
old_values[k] != new_values[k] | |
end.inject({}) do |h, k| | |
h[k] = [old_values[k], new_values[k]] | |
h | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment