Skip to content
Browse files

remove unnecessary call

if operation is count then column_name will never be blank
  • Loading branch information...
1 parent be07d7b commit 2f66b9a76c955fb5deb16f088986f13dadef6852 @neerajdotname neerajdotname committed with tenderlove
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)

0 comments on commit 2f66b9a

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