instance method
without_encryption
Ruby on Rails 7.1.6
Since v7.0.10Signature
without_encryption(&block)
Runs the provided block in an encryption context where encryption is disabled:
-
Reading encrypted content will return its ciphertexts.
-
Writing encrypted content will write its clear text.
Parameters
-
blockblock
Source
# File activerecord/lib/active_record/encryption/contexts.rb, line 49
def without_encryption(&block)
with_encryption_context encryptor: ActiveRecord::Encryption::NullEncryptor.new, &block
end
Defined in activerecord/lib/active_record/encryption/contexts.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Contexts