module
ActiveModel::Callbacks
Defined in:
active-model/callbacks.crMacro Summary
- after_create(*callbacks, &block)
- after_destroy(*callbacks, &block)
- after_save(*callbacks, &block)
- after_update(*callbacks, &block)
- before_create(*callbacks, &block)
- before_destroy(*callbacks, &block)
- before_save(*callbacks, &block)
- before_update(*callbacks, &block)
-
define_callback_methods
Declares a type's callback registry and the methods that run it.
Macro Detail
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: