method

on_rotation

rails latest stable - Class: ActiveSupport::MessageVerifiers
on_rotation
public

Sets a callback to invoke when a message is verified using an option set other than the first.

For example, this callback could log each time it is called, and thus indicate whether old option sets are still in use or can be removed from rotation.