Class: Journaled::AuditLog::Config
- Inherits:
-
Struct
- Object
- Struct
- Journaled::AuditLog::Config
- Defined in:
- lib/journaled/audit_log.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
writeonly
Sets the attribute enabled.
-
#ignored_columns ⇒ Object
Returns the value of attribute ignored_columns.
Instance Method Summary collapse
Instance Attribute Details
#enabled=(value) ⇒ Object
Sets the attribute enabled
67 68 69 |
# File 'lib/journaled/audit_log.rb', line 67 def enabled=(value) @enabled = value end |
#ignored_columns ⇒ Object
Returns the value of attribute ignored_columns
67 68 69 |
# File 'lib/journaled/audit_log.rb', line 67 def ignored_columns @ignored_columns end |
Instance Method Details
#enabled? ⇒ Boolean
69 70 71 |
# File 'lib/journaled/audit_log.rb', line 69 def enabled? !AuditLog._disabled && self[:enabled].present? end |