Method: Mongoid::Changeable#changed
- Defined in:
- lib/mongoid/changeable.rb
#changed ⇒ Array<String>
Get the changed attributes for the document.
14 15 16 |
# File 'lib/mongoid/changeable.rb', line 14 def changed changed_attributes.keys.select { |attr| attribute_change(attr) } end |