instance method construct_select

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

construct_select(custom_select = nil)

No documentation comment.

Parameters

custom_select opt = nil
Source
# File activerecord/lib/active_record/associations/through_association_scope.rb, line 52
      def construct_select(custom_select = nil)
        distinct = "DISTINCT " if @reflection.options[:uniq]
        selected = custom_select || @reflection.options[:select] || "#{distinct}#{@reflection.quoted_table_name}.*"
      end

Defined in activerecord/lib/active_record/associations/through_association_scope.rb line 52 · 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