method
with_encryption_context
rails latest stable - Class:
ActiveRecord::Encryption::Contexts
with_encryption_context(properties)public
Configures a custom encryption context to use when running the provided block of code.
It supports overriding all the properties defined in Context.
Example:
ActiveRecord::Encryption.with_encryption_context(encryptor: ActiveRecord::Encryption::NullEncryptor.new) do ... end
Encryption contexts can be nested.