Module: MassiveRecord::ORM::Callbacks

Extended by:
ActiveSupport::Concern
Defined in:
lib/massive_record/orm/callbacks.rb

Constant Summary collapse

CALLBACKS =
[
  :after_initialize, :after_find, :after_touch, 
  :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



25
26
27
# File 'lib/massive_record/orm/callbacks.rb', line 25

def destroy
  _run_destroy_callbacks { super }
end

#touchObject



29
30
31
# File 'lib/massive_record/orm/callbacks.rb', line 29

def touch(*)
  _run_touch_callbacks { super }
end