Class: Motor::ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/motor/application_record.rb

Direct Known Subclasses

Alert, AlertLock, Config, Dashboard, Form, Query, Resource, Tag, TaggableTag

Class Method Summary collapse

Class Method Details

.audited(*args) ⇒ Object


8
9
10
11
12
13
14
15
16
# File 'app/models/motor/application_record.rb', line 8

def self.audited(*args)
  default_class = Audited.audit_class

  Audited.audit_class = Motor::Audit

  super
ensure
  Audited.audit_class = default_class
end