Module: Mongoid::Historicals::ClassMethods
- Defined in:
- lib/mongoid/historicals.rb
Instance Method Summary collapse
-
#historicals(*attrs, options = {}) ⇒ Object
This model should record historical values for the specified attributes.
Instance Method Details
#historicals(*attrs, options = {}) ⇒ Object
This model should record historical values for the specified attributes.
91 92 93 94 95 96 97 98 |
# File 'lib/mongoid/historicals.rb', line 91 def historicals(*attrs) = attrs. [:max] ||= nil [:frequency] ||= :daily self. = self.historical_attributes = attrs end |