Skip to content

Instantly share code, notes, and snippets.

@cyrilchampier
Created January 14, 2015 14:52
Show Gist options
  • Save cyrilchampier/f2f5d0de52c6b73f7ed4 to your computer and use it in GitHub Desktop.
Save cyrilchampier/f2f5d0de52c6b73f7ed4 to your computer and use it in GitHub Desktop.
previous_changes not cleared on autosave
> m.display_configuration.are_shadows_enabled = true
> m.save
> m.display_configuration.previous_changes
=> {"are_shadows_enabled"=>[false, true] ...
> m.save
> m.display_configuration.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