instance method construct_scope

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

construct_scope()

No documentation comment.

Source
# 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

Defined in activerecord/lib/active_record/associations/through_association_scope.rb line 8 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Associations::ThroughAssociationScope

Type at least 2 characters to search.

↑↓ navigate · open · esc close