ActiveModel::Callbacks
Macros
after_create(*callbacks, &block)
Sourceafter_destroy(*callbacks, &block)
Sourceafter_save(*callbacks, &block)
Sourceafter_update(*callbacks, &block)
Sourcebefore_create(*callbacks, &block)
Sourcebefore_destroy(*callbacks, &block)
Sourcebefore_save(*callbacks, &block)
Sourcebefore_update(*callbacks, &block)
Sourcedefine_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: