Skip to content

Instantly share code, notes, and snippets.

@samleb
Forked from cyrilchampier/gist:f2f5d0de52c6b73f7ed4
Last active August 29, 2015 14:13
Show Gist options
  • Save samleb/ae6b5b9e319db73df3a4 to your computer and use it in GitHub Desktop.
Save samleb/ae6b5b9e319db73df3a4 to your computer and use it in GitHub Desktop.
> m.display_configuration.are_shadows_enabled = true
> m.save
> m.display_configuration.previous_changes
=> {"are_shadows_enabled"=>[false, true] ...
> m.save
# Force reload of association
> m.display_configuration(true).previous_changes
=> {"are_shadows_enabled"=>[false, true] ...
> m.display_configuration.save
> m.display_configuration.previous_changes
=> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment