Skip to content

Instantly share code, notes, and snippets.

@cyrilchampier
Last active August 29, 2015 14:13
Show Gist options
  • Save cyrilchampier/ceace967638518570171 to your computer and use it in GitHub Desktop.
Save cyrilchampier/ceace967638518570171 to your computer and use it in GitHub Desktop.
> m.previous_changes
=> {}
> m.display_configuration.previous_changes
=> {}
> m.name = "second name"
> m.display_configuration.are_shadows_enabled = false
> m.save
=> true
> m.previous_changes
=> {"name"=>["truc", "second name"], ...
> m.display_configuration.previous_changes
=> {"are_shadows_enabled"=>[true, false], ...
> m.save
=> true
> m.previous_changes
=> {}
> m.display_configuration.previous_changes
=> {"are_shadows_enabled"=>[true, false], ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment