Module: Audited

Defined in:
lib/audited.rb,
lib/audited/audit.rb,
lib/audited/auditor.rb,
lib/audited/sweeper.rb,
lib/audited/version.rb,
lib/audited/rspec_matchers.rb

Defined Under Namespace

Modules: Auditor, RspecMatchers Classes: Audit, Sweeper, YAMLIfTextColumnType

Constant Summary collapse

VERSION =
"4.5.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.audit_classObject

Returns the value of attribute audit_class


5
6
7
# File 'lib/audited.rb', line 5

def audit_class
  @audit_class
end

.current_user_methodObject

Returns the value of attribute current_user_method


5
6
7
# File 'lib/audited.rb', line 5

def current_user_method
  @current_user_method
end

.ignored_attributesObject

Returns the value of attribute ignored_attributes


5
6
7
# File 'lib/audited.rb', line 5

def ignored_attributes
  @ignored_attributes
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Audited)

    the object that the method was called on


15
16
17
# File 'lib/audited.rb', line 15

def config
  yield(self)
end

.storeObject


11
12
13
# File 'lib/audited.rb', line 11

def store
  Thread.current[:audited_store] ||= {}
end