method

_find_record

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::Persistence
_find_record(options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.