method
find_target
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Associations::SingularAssociation
find_target(async: false)private
No documentation available.
# File activerecord/lib/active_record/associations/singular_association.rb, line 47
def find_target(async: false)
if disable_joins
if async
scope.load_async.then(&:first)
else
scope.first
end
else
super.then(&:first)
end
end