instance method
_create_record
Ruby on Rails 7.1.6
Since v7.1.6 PrivateSignature
_create_record(attribute_names = self.attribute_names)
No documentation comment.
Parameters
-
attribute_namesopt = 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