module Audited
Constants
- VERSION
Attributes
audit_class[W]
auditing_enabled[RW]
current_user_method[RW]
ignored_attributes[RW]
max_audits[RW]
store_synthesized_enums[RW]
Public Class Methods
audit_class()
click to toggle source
# File lib/audited.rb, line 15 def audit_class # The audit_class is set as String in the initializer. It can not be constantized during initialization and must # be constantized at runtime. See https://github.com/collectiveidea/audited/issues/608 @audit_class = @audit_class.safe_constantize if @audit_class.is_a?(String) @audit_class ||= Audited::Audit end
Also aliased as: audit_model
audit_model()
remove audit_model
in next major version it was only shortly present in 5.1.0
Alias for: audit_class
config() { |self| ... }
click to toggle source
# File lib/audited.rb, line 36 def config yield(self) end
store()
click to toggle source
# File lib/audited.rb, line 26 def store current_store_value = Thread.current.thread_variable_get(:audited_store) if current_store_value.nil? Thread.current.thread_variable_set(:audited_store, {}) else current_store_value end end