instance method _create_record

Ruby on Rails 7.1.6

Since v7.1.6 Private

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

Signature

_create_record(attribute_names = self.attribute_names)

No documentation comment.

Parameters

attribute_names opt = self.attribute_names
Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 178
        def _create_record(attribute_names = self.attribute_names)
          if has_encrypted_attributes?
            # Always persist encrypted attributes, because an attribute might be
            # encrypting a column default value.
            attribute_names |= self.class.encrypted_attributes.map(&:to_s)
          end
          super
        end

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