Method: Mongoid::Dirty::InstanceMethods#move_changes
- Defined in:
- lib/mongoid/dirty.rb
#move_changes ⇒ Object
Call this method after save, so the changes can be properly switched.
Example:
person.move_changes
104 105 106 107 |
# File 'lib/mongoid/dirty.rb', line 104 def move_changes @previous_modifications = modifications.dup @modifications = {} end |