method
find_target
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyThroughAssociation
find_target()protected
No documentation available.
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 76
def find_target
return [] unless target_reflection_has_associated_record?
@reflection.klass.find(:all,
:select => construct_select,
:conditions => construct_conditions,
:from => construct_from,
:joins => construct_joins,
:order => @reflection.options[:order],
:limit => @reflection.options[:limit],
:group => @reflection.options[:group],
:readonly => @reflection.options[:readonly],
:include => @reflection.options[:include] || @reflection.source_reflection.options[:include]
)
end