diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-09 13:11:09 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-09 10:33:52 -0700 |
commit | 2f66b9a76c955fb5deb16f088986f13dadef6852 (patch) | |
tree | c41ef057549d5e758e5e2709ab28cfcd97fdf59e | |
parent | be07d7b1073d841cd39896e5e8bcb5a2333a1d09 (diff) | |
download | rails-2f66b9a76c955fb5deb16f088986f13dadef6852.tar.gz rails-2f66b9a76c955fb5deb16f088986f13dadef6852.tar.bz2 rails-2f66b9a76c955fb5deb16f088986f13dadef6852.zip |
remove unnecessary call
if operation is count then column_name will never be blank
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index a80ac40a2c..a09f694fb3 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -175,7 +175,6 @@ module ActiveRecord 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) |