instance method
build_decrypt_attribute_assignments
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
build_decrypt_attribute_assignments()
No documentation comment.
Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 190
def build_decrypt_attribute_assignments
Array(self.class.encrypted_attributes).collect 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.to_h
end
Defined in activerecord/lib/active_record/encryption/encryptable_record.rb line 190
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::EncryptableRecord