1
0
Fork 0
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:
Aaron Patterson 2010-11-24 13:32:01 -08:00
parent d4b8d3bafa
commit afe51afcc6

View file

@ -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)