Sha256: ad9c60f5222f021f0ba63a63c5d65cc504dea77ec9fb930db0b250e01f607b9a

Contents?: true

Size: 357 Bytes

Versions: 172

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Motor
  class ApplicationRecord < ActiveRecord::Base
    self.abstract_class = true
    self.table_name_prefix = 'motor_'

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

      Audited.audit_class = Motor::Audit

      super
    ensure
      Audited.audit_class = default_class
    end
  end
end

Version data entries

172 entries across 172 versions & 2 rubygems

Version Path
motor-admin-0.4.2 app/models/motor/application_record.rb
motor-admin-0.4.0 app/models/motor/application_record.rb
motor-admin-0.3.17 app/models/motor/application_record.rb
motor-admin-0.3.16 app/models/motor/application_record.rb
motor-admin-0.3.15 app/models/motor/application_record.rb
mafia-admin-0.3.18 app/models/motor/application_record.rb
mafia-admin-0.3.17 app/models/motor/application_record.rb
mafia-admin-0.3.16 app/models/motor/application_record.rb
mafia-admin-0.3.15 app/models/motor/application_record.rb
mafia-admin-0.3.14 app/models/motor/application_record.rb
motor-admin-0.3.14 app/models/motor/application_record.rb
motor-admin-0.3.13 app/models/motor/application_record.rb
motor-admin-0.3.12 app/models/motor/application_record.rb
motor-admin-0.3.11 app/models/motor/application_record.rb
motor-admin-0.3.10 app/models/motor/application_record.rb
motor-admin-0.3.9 app/models/motor/application_record.rb
motor-admin-0.3.8 app/models/motor/application_record.rb
motor-admin-0.3.7 app/models/motor/application_record.rb
motor-admin-0.3.6 app/models/motor/application_record.rb
motor-admin-0.3.5 app/models/motor/application_record.rb