module Granite::Callbacks
Direct including types
Defined in:
granite/callbacks.cr
Constant Summary
-
CALLBACK_NAMES =
["before_save", "after_save", "before_create", "after_create", "before_update", "after_update", "before_destroy", "after_destroy"] of ::String
Instance Method Summary
Macro Summary
Instance Method Detail
def
abort!(message =
"Aborted at #{@_current_callback
}.")
#
Macro Detail
macro
after_create(*callbacks, &block)
#
macro
after_destroy(*callbacks, &block)
#
macro
after_save(*callbacks, &block)
#
macro
after_update(*callbacks, &block)
#
macro
before_create(*callbacks, &block)
#
macro
before_destroy(*callbacks, &block)
#
macro
before_save(*callbacks, &block)
#
macro
before_update(*callbacks, &block)
#