Module: CIA::Auditable::ClassMethods
- Defined in:
- lib/cia/auditable.rb
Instance Method Summary collapse
Instance Method Details
#audit_attribute(*attributes) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cia/auditable.rb', line 12 def audit_attribute(*attributes) self.audited_attributes = Set.new unless audited_attributes self.audited_attributes += attributes.map(&:to_s) has_many :audit_events, :class_name => "CIA::Event", :as => :source has_many :audit_attribute_changes, :class_name => "CIA::AttributeChange", :as => :source end |