method

fetch_first_or_last_using_find?

rails latest stable - Class: ActiveRecord::Associations::AssociationCollection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

fetch_first_or_last_using_find?(args)
private

No documentation available.

# File activerecord/lib/active_record/associations/association_collection.rb, line 555
        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