instance method deterministic_encrypted_attributes

Ruby on Rails 8.0.4

Since v7.0.10

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

Signature

deterministic_encrypted_attributes()

Returns the list of deterministic encryptable attributes in the model class.

Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 58
        def deterministic_encrypted_attributes
          @deterministic_encrypted_attributes ||= encrypted_attributes&.find_all do |attribute_name|
            type_for_attribute(attribute_name).deterministic?
          end
        end

Defined in activerecord/lib/active_record/encryption/encryptable_record.rb line 58 · 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