method
build_decrypt_attribute_assignments
rails latest stable - Class:
ActiveRecord
build_decrypt_attribute_assignments()private
No documentation available.
# 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