module ActiveModel::Callbacks

Defined in:

active-model/callbacks.cr

Macro Summary

Macro Detail

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]
macro define_callback_methods #

Declares a type's callback registry and the methods that run it.

Emitted on the including type and on every subclass: __before_save and friends expand a type's own callbacks together with its ancestors', so the expansion has to happen once per type.

:nodoc:


[View source]