instance method encrypted_attribute?

Ruby on Rails 7.0.10

Since v7.0.10

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

Signature

encrypted_attribute?(attribute_name)

Returns whether a given attribute is encrypted or not.

Parameters

attribute_name req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close