instance method
encrypted_attribute?
Ruby on Rails 7.0.10
Since v7.0.10Signature
encrypted_attribute?(attribute_name)
Returns whether a given attribute is encrypted or not.
Parameters
-
attribute_namereq
Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 141
def encrypted_attribute?(attribute_name)
ActiveRecord::Encryption.encryptor.encrypted? ciphertext_for(attribute_name)
end
Defined in activerecord/lib/active_record/encryption/encryptable_record.rb line 141
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::EncryptableRecord