mirror of https://github.com/rails/rails
Remove construct_from from ThroughAssociationScope - it's not called from anywhere
This commit is contained in:
parent
93861d19e3
commit
d7a659334c
|
@ -73,10 +73,6 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
def construct_from
|
||||
@reflection.table_name
|
||||
end
|
||||
|
||||
def construct_select(custom_select = nil)
|
||||
distinct = "DISTINCT #{@reflection.quoted_table_name}.*" if @reflection.options[:uniq]
|
||||
custom_select || @reflection.options[:select] || distinct
|
||||
|
|
Loading…
Reference in New Issue