Module: Artery::Model::Callbacks

Extended by:
ActiveSupport::Concern
Defined in:
lib/artery/model/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#artery_on_archiveObject



27
28
29
# File 'lib/artery/model/callbacks.rb', line 27

def artery_on_archive
  artery_notify_message(:archive, archived_at: archived_at.to_f)
end

#artery_on_createObject



19
20
21
# File 'lib/artery/model/callbacks.rb', line 19

def artery_on_create
  artery_notify_message(:create)
end

#artery_on_destroyObject



35
36
37
# File 'lib/artery/model/callbacks.rb', line 35

def artery_on_destroy
  artery_notify_message(:delete)
end

#artery_on_unarchiveObject



31
32
33
# File 'lib/artery/model/callbacks.rb', line 31

def artery_on_unarchive
  artery_notify_message(:unarchive)
end

#artery_on_updateObject



23
24
25
# File 'lib/artery/model/callbacks.rb', line 23

def artery_on_update
  artery_notify_message(:update)
end