diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 13:32:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 13:55:55 -0800 |
commit | afe51afcc6b7c0245fddbd879d369818b54e460a (patch) | |
tree | 1e42a32af92aa39904bd9e6bd17a046e17676af8 | |
parent | d4b8d3bafa54e233d3f1ef43c43bfb460d9f2435 (diff) | |
download | rails-afe51afcc6b7c0245fddbd879d369818b54e460a.tar.gz rails-afe51afcc6b7c0245fddbd879d369818b54e460a.tar.bz2 rails-afe51afcc6b7c0245fddbd879d369818b54e460a.zip |
remove useless join
-rw-r--r-- | activerecord/lib/active_record/associations/class_methods/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/class_methods/join_dependency.rb b/activerecord/lib/active_record/associations/class_methods/join_dependency.rb index 87541e0529..7c7fa964f8 100644 --- a/activerecord/lib/active_record/associations/class_methods/join_dependency.rb +++ b/activerecord/lib/active_record/associations/class_methods/join_dependency.rb @@ -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) |