AbstractController::Callbacks::ClassMethods
module AbstractController::Callbacks::ClassMethods
Public Instance Methods
Take callback names and an optional callback proc, normalize them, then call the block with each callback. This allows us to abstract the normalization across several methods that use it.
Parameters
-
callbacks
- An array of callbacks, with an optional options hash as t