instance method build_decrypt_attribute_assignments

Ruby on Rails 8.1.2

Since v7.0.10 Private

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

Signature

build_decrypt_attribute_assignments()

No documentation comment.

Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 214
        def build_decrypt_attribute_assignments
          Array(self.class.encrypted_attributes).to_h do |attribute_name|
            type = type_for_attribute(attribute_name)
            encrypted_value = ciphertext_for(attribute_name)
            new_value = type.deserialize(encrypted_value)
            [attribute_name, new_value]
          end
        end

Defined in activerecord/lib/active_record/encryption/encryptable_record.rb line 214 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Encryption::EncryptableRecord

Type at least 2 characters to search.

↑↓ navigate · open · esc close