mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove useless join
This commit is contained in:
parent
d4b8d3bafa
commit
afe51afcc6
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ module ActiveRecord
|
|||
join_part.column_names_with_alias.collect{ |column_name, aliased_name|
|
||||
"#{connection.quote_table_name join_part.aliased_table_name}.#{connection.quote_column_name column_name} AS #{aliased_name}"
|
||||
}
|
||||
}.flatten.join(", ")
|
||||
}.flatten
|
||||
end
|
||||
|
||||
def count_aliases_from_table_joins(name)
|
||||
|
|
Loading…
Reference in a new issue