instance method without_encryption

Ruby on Rails 7.0.10

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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

block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close