Module: ModestModel::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
Resource
Defined in:
lib/modest_model/callbacks.rb

Constant Summary collapse

CALLBACKS =
[
  :after_initialize, :after_find, :before_validation, :after_validation,
  :before_save, :around_save, :after_save, :before_create, :around_create,
  :after_create, :before_update, :around_update, :after_update,
  :before_destroy, :around_destroy, :after_destroy
]

Instance Method Summary collapse

Instance Method Details

#destroyObject

:nodoc:



24
25
26
# File 'lib/modest_model/callbacks.rb', line 24

def destroy #:nodoc:
  run_callbacks(:destroy) { super }
end

#foundObject

:nodoc:



20
21
22
# File 'lib/modest_model/callbacks.rb', line 20

def found #:nodoc:
  run_callbacks(:find) { super }
end