module

ActiveModel::Callbacks

Macros

after_create(*callbacks, &block)
Source
after_destroy(*callbacks, &block)
Source
after_save(*callbacks, &block)
Source
after_update(*callbacks, &block)
Source
before_create(*callbacks, &block)
Source
before_destroy(*callbacks, &block)
Source
before_save(*callbacks, &block)
Source
before_update(*callbacks, &block)
Source
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:

Source