Sha256: d1c816cd408c065ecd241bbc78d5113069bc6be5c36bc9b46973fce89a483711
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require 'active_record' module Audited class << self attr_accessor :ignored_attributes, :current_user_method, :audit_class def audit_class @audit_class || Audit end def store Thread.current[:audited_store] ||= {} end def config yield(self) 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 & 1 rubygems
Version | Path |
---|---|
audited-4.5.0 | lib/audited.rb |
audited-4.4.1 | lib/audited.rb |
audited-4.4.0 | lib/audited.rb |