Skip to content
This repository
Browse code

remove unnecessary call

if operation is count then column_name will never be blank
  • Loading branch information...
commit 2f66b9a76c955fb5deb16f088986f13dadef6852 1 parent be07d7b
Neeraj Singh authored September 09, 2010 tenderlove committed September 09, 2010
1  activerecord/lib/active_record/relation/calculations.rb
@@ -175,7 +175,6 @@ def perform_calculation(operation, column_name, options = {})
175 175
       end
176 176
 
177 177
       distinct = options[:distinct] || distinct
178  
-      column_name = :all if column_name.blank? && operation == "count"
179 178
 
180 179
       if @group_values.any?
181 180
         return execute_grouped_calculation(operation, column_name)

0 notes on commit 2f66b9a

Please sign in to comment.
Something went wrong with that request. Please try again.