diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 11:33:24 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 11:38:43 -0800 |
commit | ec72b6b3ec1b78c22189ee475c1af2fdab317489 (patch) | |
tree | 156407c2526179829f546b22713ba3898dcacb89 /activerecord | |
parent | 4dec00a9d8262d85b733aa3bd5b68d2b7de950a7 (diff) | |
download | rails-ec72b6b3ec1b78c22189ee475c1af2fdab317489.tar.gz rails-ec72b6b3ec1b78c22189ee475c1af2fdab317489.tar.bz2 rails-ec72b6b3ec1b78c22189ee475c1af2fdab317489.zip |
froms should never equal 0
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index a98b650524..145ae6ca97 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -273,8 +273,6 @@ module ActiveRecord if manager.froms.length > 0 && join_ast join_ast.left = manager.froms.first manager.from join_ast - elsif manager.froms.length == 0 && join_ast - manager.from(join_ast) else manager end |