From 10041e2d4542f347e9ce85dc44ba41ea3ab09644 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 28 Sep 2010 15:39:24 -0700 Subject: removing a conditional that is not used --- activerecord/lib/active_record/relation/query_methods.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index b9957c41fa..b25388c0e8 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -264,8 +264,6 @@ module ActiveRecord case select = selects.last when Arel::Expression, Arel::SqlLiteral arel.project(select) - when /^COUNT\(/ - arel.project(Arel::SqlLiteral.new(select)) else arel.project(*selects) end -- cgit v1.2.3