Module: Cardiac::Model::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/cardiac/model/callbacks.rb

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

Instance Method Details

#destroyObject

:nodoc:



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

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