method
protecting_encrypted_data
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Encryption::Contexts
protecting_encrypted_data(&block)public
Runs the provided block in an encryption context where:
-
Reading encrypted content will return its ciphertext.
-
Writing encrypted content will fail.