instance method on_rotation

Ruby on Rails 8.1.2

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

on_rotation(&callback)

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.

Source
# File activesupport/lib/active_support/message_encryptors.rb, line 172
    

Defined in activesupport/lib/active_support/message_encryptors.rb line 172 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::MessageEncryptors

Type at least 2 characters to search.

↑↓ navigate · open · esc close