Method: Mongoid::Dirty::InstanceMethods#reset_modifications

Defined in:
lib/mongoid/dirty.rb

#reset_modificationsObject

Reset all modifications for the document. This will wipe all the marked changes, but not reset the values.

Example:

document.reset_modifications



183
184
185
186
# File 'lib/mongoid/dirty.rb', line 183

def reset_modifications
  @accessed = {}
  @modifications = {}
end