method
construct_scope
v3.0.9 -
Show latest stable
- Class:
ActiveRecord::Associations::ThroughAssociationScope
construct_scope()protected
No documentation available.
# File activerecord/lib/active_record/associations/through_association_scope.rb, line 8
def construct_scope
{ :create => construct_owner_attributes(@reflection),
:find => { :conditions => construct_conditions,
:joins => construct_joins,
:include => @reflection.options[:include] || @reflection.source_reflection.options[:include],
:select => construct_select,
:order => @reflection.options[:order],
:limit => @reflection.options[:limit],
:readonly => @reflection.options[:readonly],
} }
end