Flowdock
method

fetch_first_or_last_using_find?

Importance_0
v2.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::AssociationCollection
fetch_first_or_last_using_find?(args) 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/associations/association_collection.rb, line 464
        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
Register or log in to add new notes.