instance method
construct_select
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
construct_select(custom_select = nil)
No documentation comment.
Parameters
-
custom_selectopt = 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