method
on_rotation
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::MessageEncryptors
on_rotationpublic
Sets a callback to invoke when a message is decrypted 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.