instance method _create_record

Ruby on Rails 6.0.6

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 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/locking/optimistic.rb, line 73
        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 73 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Locking::Optimistic

Type at least 2 characters to search.

↑↓ navigate · open · esc close