Module: ActiveNode::Callbacks
Defined Under Namespace
Modules: ClassMethods
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, :after_commit, :after_rollback ]
Instance Method Summary collapse
Instance Method Details
#destroy(include_relationships = false) ⇒ Object
23 24 25 |
# File 'lib/active_node/callbacks.rb', line 23 def destroy include_relationships=false run_callbacks(:destroy) { super include_relationships } end |
#touch ⇒ Object
:nodoc:
27 28 29 |
# File 'lib/active_node/callbacks.rb', line 27 def touch(*) #:nodoc: run_callbacks(:touch) { super } end |