instance method _find_record

Ruby on Rails 7.0.10

Since v7.0.10 Private

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

Signature

_find_record(options)

No documentation comment.

Parameters

options req
Source
# File activerecord/lib/active_record/persistence.rb, line 1020
    def _find_record(options)
      if options && options[:lock]
        self.class.preload(strict_loaded_associations).lock(options[:lock]).find(id)
      else
        self.class.preload(strict_loaded_associations).find(id)
      end
    end

Defined in activerecord/lib/active_record/persistence.rb line 1020 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Persistence

Type at least 2 characters to search.

↑↓ navigate · open · esc close