Sha256: 98a0f634108ad9ff602318ba4efddd3cc90bf05792d23b7a59b4f4b7992d04f9
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
require 'rails/observers/active_model/active_model' require 'active_record' module Audited class << self attr_accessor :ignored_attributes, :current_user_method # Deprecate audit_class accessors in preperation of their removal def audit_class Audited::Audit end deprecate audit_class: "Audited.audit_class is now always Audited::Audit. This method will be removed." def store Thread.current[:audited_store] ||= {} end end @ignored_attributes = %w(lock_version created_at updated_at created_on updated_on) @current_user_method = :current_user end require 'audited/auditor' require 'audited/audit' ::ActiveRecord::Base.send :include, Audited::Auditor require 'audited/sweeper'
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
audited-hp-4.3.1 | lib/audited.rb |
audited-hp-4.3.0 | lib/audited.rb |
audited-4.3.0 | lib/audited.rb |