Class: Mongoid::History::Attributes::Destroy
- Defined in:
- lib/mongoid/history/attributes/destroy.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mongoid::History::Attributes::Base
Instance Method Details
#attributes ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mongoid/history/attributes/destroy.rb', line 5 def attributes @attributes = {} trackable.attributes.each { |k, v| @attributes[k] = [format_field(k, v), nil] if trackable_class.tracked_field?(k, :destroy) } @attributes end |