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}.") #

[View source]

Macro Detail

macro __after_create #

[View source]
macro __after_destroy #

[View source]
macro __after_save #

[View source]
macro __after_update #

[View source]
macro __before_create #

[View source]
macro __before_destroy #

[View source]
macro __before_save #

[View source]
macro __before_update #

[View source]
macro after_create(*callbacks, &block) #

[View source]
macro after_destroy(*callbacks, &block) #

[View source]
macro after_save(*callbacks, &block) #

[View source]
macro after_update(*callbacks, &block) #

[View source]
macro before_create(*callbacks, &block) #

[View source]
macro before_destroy(*callbacks, &block) #

[View source]
macro before_save(*callbacks, &block) #

[View source]
macro before_update(*callbacks, &block) #

[View source]