module Sandstone::ORM::Callbacks
Direct including types
Defined in:
sandstone/callbacks.cr
Constant Summary
-
CALLBACK_NAMES =
[:before_save, :after_save, :before_create, :after_create, :before_update, :after_update, :before_destroy, :after_destroy] of ::Symbol
Macro Summary
Macro Detail
macro
__run_after_create
#
macro
__run_after_destroy
#
macro
__run_after_update
#
macro
__run_before_create
#
macro
__run_before_destroy
#
macro
__run_before_save
#
macro
__run_before_update
#
macro
after_create(callback)
#
macro
after_destroy(callback)
#
macro
after_save(callback)
#
macro
after_update(callback)
#
macro
before_create(callback)
#
macro
before_destroy(callback)
#
macro
before_save(callback)
#
macro
before_update(callback)
#