Module: Models::Auditable::ClassMethods
- Defined in:
- app/concerns/models/auditable.rb
Instance Method Summary collapse
-
#audit_reference_data(*fields) ⇒ Object
If you need to always store some meta data, good example is a foreign key which will not reappear in all the changes.
-
#skip_audit_for(*sk_columns) ⇒ Object
If you want to ignore certain column.
Instance Method Details
#audit_reference_data(*fields) ⇒ Object
If you need to always store some meta data, good example is a foreign key
which will not reappear in all the changes
33 34 35 |
# File 'app/concerns/models/auditable.rb', line 33 def audit_reference_data(*fields) self.reference_data = fields&.flatten end |
#skip_audit_for(*sk_columns) ⇒ Object
If you want to ignore certain column
27 28 29 |
# File 'app/concerns/models/auditable.rb', line 27 def skip_audit_for(*sk_columns) self.skipped_columns = sk_columns&.flatten end |