method

build_decrypt_attribute_assignments

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord
build_decrypt_attribute_assignments() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.