method
protecting_encrypted_data
rails 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.