method
fetch_first_or_last_using_find?

fetch_first_or_last_using_find?(args)
private
Hide source
# File activerecord/lib/active_record/associations/association_collection.rb, line 447 def fetch_first_or_last_using_find?(args) args.first.kind_of?(Hash) || !(loaded? || @owner.new_record? || @reflection.options[:finder_sql] || @target.any? { |record| record.new_record? } || args.first.kind_of?(Integer)) end