Module: Audited
- Defined in:
- lib/audited.rb,
lib/audited/audit.rb,
lib/audited/auditor.rb,
lib/audited/railtie.rb,
lib/audited/sweeper.rb,
lib/audited/version.rb,
lib/audited/rspec_matchers.rb,
lib/generators/audited/migration.rb,
lib/generators/audited/migration_helper.rb,
lib/generators/audited/install_generator.rb,
lib/generators/audited/upgrade_generator.rb
Defined Under Namespace
Modules: Auditor, Generators, RspecMatchers Classes: Audit, Railtie, RequestStore, Sweeper, YAMLIfTextColumnType
Constant Summary collapse
- VERSION =
"5.8.0"
Class Attribute Summary collapse
- .audit_class ⇒ Object (also: audit_model)
-
.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.
-
.ignored_default_callbacks ⇒ Object
Returns the value of attribute ignored_default_callbacks.
-
.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 Also known as: audit_model
21 22 23 24 25 26 |
# File 'lib/audited.rb', line 21 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 |
.auditing_enabled ⇒ Object
Returns the value of attribute auditing_enabled.
12 13 14 |
# File 'lib/audited.rb', line 12 def auditing_enabled @auditing_enabled end |
.current_user_method ⇒ Object
Returns the value of attribute current_user_method.
12 13 14 |
# File 'lib/audited.rb', line 12 def current_user_method @current_user_method end |
.ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
12 13 14 |
# File 'lib/audited.rb', line 12 def ignored_attributes @ignored_attributes end |
.ignored_default_callbacks ⇒ Object
Returns the value of attribute ignored_default_callbacks.
12 13 14 |
# File 'lib/audited.rb', line 12 def ignored_default_callbacks @ignored_default_callbacks end |
.max_audits ⇒ Object
Returns the value of attribute max_audits.
12 13 14 |
# File 'lib/audited.rb', line 12 def max_audits @max_audits end |
.store_synthesized_enums ⇒ Object
Returns the value of attribute store_synthesized_enums.
12 13 14 |
# File 'lib/audited.rb', line 12 def store_synthesized_enums @store_synthesized_enums end |
Class Method Details
.config {|_self| ... } ⇒ Object
37 38 39 |
# File 'lib/audited.rb', line 37 def config yield(self) end |
.store ⇒ Object
33 34 35 |
# File 'lib/audited.rb', line 33 def store RequestStore.audited_store ||= {} end |