Skip to Content Skip to Search

module ActiveRecord::Callbacks::ClassMethods

Inherits From

Public instance methods

after_create(*args, &block)

Permalink

Registers a callback to be called after a record is created. See ActiveRecord::Callbacks for more information.

GitHub

after_destroy(*args, &block)

Permalink

Registers a callback to be called after a record is destroyed. See ActiveRecord::Callbacks for more information.

GitHub

after_find(*args, &block)

Permalink

Registers a callback to be called after a record is instantiated via a finder. See ActiveRecord::Callbacks for more information.

GitHub

after_initialize(*args, &block)

Permalink

Registers a callback to be called after a record is instantiated. See ActiveRecord::Callbacks for more information.

GitHub

after_save(*args, &block)

Permalink

Registers a callback to be called after a record is saved. See ActiveRecord::Callbacks for more information.

GitHub

after_touch(*args, &block)

Permalink

Registers a callback to be called after a record is touched. See ActiveRecord::Callbacks for more information.

GitHub

after_update(*args, &block)

Permalink

Registers a callback to be called after a record is updated. See ActiveRecord::Callbacks for more information.

GitHub

around_create(*args, &block)

Permalink

Registers a callback to be called around the creation of a record. See ActiveRecord::Callbacks for more information.

GitHub

around_destroy(*args, &block)

Permalink

Registers a callback to be called around the destruction of a record. See ActiveRecord::Callbacks for more information.

GitHub

around_save(*args, &block)

Permalink

Registers a callback to be called around the save of a record. See ActiveRecord::Callbacks for more information.

GitHub

around_update(*args, &block)

Permalink

Registers a callback to be called around the update of a record. See ActiveRecord::Callbacks for more information.

GitHub

before_create(*args, &block)

Permalink

Registers a callback to be called before a record is created. See ActiveRecord::Callbacks for more information.

GitHub

before_destroy(*args, &block)

Permalink

Registers a callback to be called before a record is destroyed. See ActiveRecord::Callbacks for more information.

GitHub

before_save(*args, &block)

Permalink

Registers a callback to be called before a record is saved. See ActiveRecord::Callbacks for more information.

GitHub

before_update(*args, &block)

Permalink

Registers a callback to be called before a record is updated. See ActiveRecord::Callbacks for more information.

GitHub

Definition files