Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unnecessary call

if operation is count then column_name will never be blank
  • Loading branch information...
commit 2f66b9a76c955fb5deb16f088986f13dadef6852 1 parent be07d7b
@neerajdotname neerajdotname authored tenderlove committed
Showing with 0 additions and 1 deletion.
  1. +0 −1  activerecord/lib/active_record/relation/calculations.rb
View
1  activerecord/lib/active_record/relation/calculations.rb
@@ -175,7 +175,6 @@ def perform_calculation(operation, column_name, options = {})
end
distinct = options[:distinct] || distinct
- column_name = :all if column_name.blank? && operation == "count"
if @group_values.any?
return execute_grouped_calculation(operation, column_name)
Please sign in to comment.
Something went wrong with that request. Please try again.