Method: Mongoid::Changeable#changes
- Defined in:
- lib/mongoid/changeable.rb
#changes ⇒ Hash<String, Array<Object, Object> ] The changes.
Get all the changes for the document.
61 62 63 64 65 66 |
# File 'lib/mongoid/changeable.rb', line 61 def changes changed.each_with_object({}) do |attr, changes| change = attribute_change(attr) changes[attr] = change if change end.with_indifferent_access end |