Module: Cardiac::Model::Callbacks
Overview
Cardiac::Model callback methods. Most of this has been “borrowed” from ActiveRecord.
Defined Under Namespace
Modules: ClassMethods
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
-
#destroy ⇒ Object
:nodoc:.
Instance Method Details
#destroy ⇒ Object
:nodoc:
27 28 29 |
# File 'lib/cardiac/model/callbacks.rb', line 27 def destroy #:nodoc: run_callbacks(:destroy) { super } end |