class

ActiveRecord::Encryption::ReadOnlyNullEncryptor

v8.1.1 - Show latest stable - Superclass: Object

A NullEncryptor that will raise an error when trying to encrypt data

This is useful when you want to reveal ciphertexts for debugging purposes and you want to make sure you won’t overwrite any encryptable attribute with the wrong content.

Files

  • activerecord/lib/active_record/encryption/read_only_null_encryptor.rb