Module: Artery::Model::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/artery/model/callbacks.rb
Instance Method Summary collapse
- #artery_on_archive ⇒ Object
- #artery_on_create ⇒ Object
- #artery_on_destroy ⇒ Object
- #artery_on_unarchive ⇒ Object
- #artery_on_update ⇒ Object
Instance Method Details
#artery_on_archive ⇒ Object
27 28 29 |
# File 'lib/artery/model/callbacks.rb', line 27 def artery_on_archive (:archive, archived_at: archived_at.to_f) end |
#artery_on_create ⇒ Object
19 20 21 |
# File 'lib/artery/model/callbacks.rb', line 19 def artery_on_create (:create) end |
#artery_on_destroy ⇒ Object
35 36 37 |
# File 'lib/artery/model/callbacks.rb', line 35 def artery_on_destroy (:delete) end |
#artery_on_unarchive ⇒ Object
31 32 33 |
# File 'lib/artery/model/callbacks.rb', line 31 def artery_on_unarchive (:unarchive) end |
#artery_on_update ⇒ Object
23 24 25 |
# File 'lib/artery/model/callbacks.rb', line 23 def artery_on_update (:update) end |