Module: Snapshotable::Model::ClassMethods
- Defined in:
- lib/snapshotable/model.rb
Instance Method Summary collapse
- #custom_snapshot(*attributes) ⇒ Object
- #snapshot(*attributes) ⇒ Object
- #snapshot_ignore_diff(*attributes) ⇒ Object
- #snapshotable_config ⇒ Object
Instance Method Details
#custom_snapshot(*attributes) ⇒ Object
22 23 24 |
# File 'lib/snapshotable/model.rb', line 22 def custom_snapshot(*attributes) snapshotable_config.setup_snapshot_custom(attributes) end |
#snapshot(*attributes) ⇒ Object
14 15 16 |
# File 'lib/snapshotable/model.rb', line 14 def snapshot(*attributes) snapshotable_config.setup_snapshot_attributes(attributes) end |
#snapshot_ignore_diff(*attributes) ⇒ Object
18 19 20 |
# File 'lib/snapshotable/model.rb', line 18 def snapshot_ignore_diff(*attributes) snapshotable_config.setup_snapshot_ignore(attributes) end |
#snapshotable_config ⇒ Object
26 27 28 |
# File 'lib/snapshotable/model.rb', line 26 def snapshotable_config ::Snapshotable::ModelConfig.new(self) end |