instance method
_create_record
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
_create_record(attribute_names = self.attribute_names)
No documentation comment.
Parameters
-
attribute_namesopt = self.attribute_names
Source
# File activerecord/lib/active_record/locking/optimistic.rb, line 78
def _create_record(attribute_names = self.attribute_names)
if locking_enabled?
# We always want to persist the locking version, even if we don't detect
# a change from the default, since the database might have no default
attribute_names |= [self.class.locking_column]
end
super
end
Defined in activerecord/lib/active_record/locking/optimistic.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Locking::Optimistic