Module: Auditor::Auditable::InstanceMethods

Defined in:
lib/auditor/auditable.rb

Instance Method Summary collapse

Instance Method Details

#attributes_at(date_or_time) ⇒ Object



38
39
40
# File 'lib/auditor/auditable.rb', line 38

def attributes_at(date_or_time)
  audits.where('created_at <= ?', date_or_time).last.attribute_snapshot
end