Method: Mongoid::Versioning#versioned_changes

Defined in:
lib/mongoid/versioning.rb

#versioned_changesHash

Filters the results of changes by removing any fields that should not be versioned.

Returns:

  • (Hash)

    A hash of versioned changed attributes.

Since:

  • 2.1.0



79
80
81
# File 'lib/mongoid/versioning.rb', line 79

def versioned_changes
  only_versioned_attributes(changes.except("updated_at"))
end