Module: VelocityAudited

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"6.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.audit_classObject



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

def audit_class
  @audit_class ||= Audit
end

.auditing_enabledObject

Returns the value of attribute auditing_enabled.



7
8
9
# File 'lib/velocity_audited.rb', line 7

def auditing_enabled
  @auditing_enabled
end

.current_user_methodObject

Returns the value of attribute current_user_method.



7
8
9
# File 'lib/velocity_audited.rb', line 7

def current_user_method
  @current_user_method
end

.ignored_attributesObject

Returns the value of attribute ignored_attributes.



7
8
9
# File 'lib/velocity_audited.rb', line 7

def ignored_attributes
  @ignored_attributes
end

.max_auditsObject

Returns the value of attribute max_audits.



7
8
9
# File 'lib/velocity_audited.rb', line 7

def max_audits
  @max_audits
end

.store_synthesized_enumsObject

Returns the value of attribute store_synthesized_enums.



7
8
9
# File 'lib/velocity_audited.rb', line 7

def store_synthesized_enums
  @store_synthesized_enums
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:



29
30
31
# File 'lib/velocity_audited.rb', line 29

def config
  yield(self)
end

.storeObject



19
20
21
22
23
24
25
26
27
# File 'lib/velocity_audited.rb', line 19

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