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
- .audit_class ⇒ Object
-
.auditing_enabled ⇒ Object
Returns the value of attribute auditing_enabled.
-
.current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
.ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
-
.max_audits ⇒ Object
Returns the value of attribute max_audits.
-
.store_synthesized_enums ⇒ Object
Returns the value of attribute store_synthesized_enums.
Class Method Summary collapse
Class Attribute Details
.audit_class ⇒ Object
15 16 17 |
# File 'lib/velocity_audited.rb', line 15 def audit_class @audit_class ||= Audit end |
.auditing_enabled ⇒ Object
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_method ⇒ Object
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_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
7 8 9 |
# File 'lib/velocity_audited.rb', line 7 def ignored_attributes @ignored_attributes end |
.max_audits ⇒ Object
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_enums ⇒ Object
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
29 30 31 |
# File 'lib/velocity_audited.rb', line 29 def config yield(self) end |
.store ⇒ Object
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 |