Permalink
Browse files

Don't include table_name twice

  • Loading branch information...
1 parent c9ab709 commit 9c7fe7c6729bbdde4a22f58e7279463092390330 @fcheung fcheung committed with lifo Dec 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1771,7 +1771,7 @@ def joined_tables(options)
tables_in_string(merged_joins.join(' '))
else
join_dependency = ActiveRecord::Associations::ClassMethods::InnerJoinDependency.new(self, merged_joins, nil)
- [table_name] + join_dependency.join_associations.collect {|join_association| [join_association.aliased_join_table_name, join_association.aliased_table_name]}.flatten.compact
+ join_dependency.join_associations.collect {|join_association| [join_association.aliased_join_table_name, join_association.aliased_table_name]}.flatten.compact
end
else
tables_in_string(merged_joins)

0 comments on commit 9c7fe7c

Please sign in to comment.