instance method _find_record

Ruby on Rails 7.1.6

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 1153
    def _find_record(options)
      all_queries = options ? options[:all_queries] : nil
      base = self.class.all(all_queries: all_queries).preload(strict_loaded_associations)

      if options && options[:lock]
        base.lock(options[:lock]).find_by!(_in_memory_query_constraints_hash)
      else
        base.find_by!(_in_memory_query_constraints_hash)
      end
    end

Defined in activerecord/lib/active_record/persistence.rb line 1153 · 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