aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-09-09 13:13:04 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-09 10:34:20 -0700
commit632120deb4b31eda5863e3afe1a223f9237eec81 (patch)
tree66ae86da67215d2750dccd9a7744fe3b854e3439 /activerecord
parent2f66b9a76c955fb5deb16f088986f13dadef6852 (diff)
downloadrails-632120deb4b31eda5863e3afe1a223f9237eec81.tar.gz
rails-632120deb4b31eda5863e3afe1a223f9237eec81.tar.bz2
rails-632120deb4b31eda5863e3afe1a223f9237eec81.zip
return is not needed here
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation/calculations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb
index a09f694fb3..398ab75b69 100644
--- a/activerecord/lib/active_record/relation/calculations.rb
+++ b/activerecord/lib/active_record/relation/calculations.rb
@@ -177,9 +177,9 @@ module ActiveRecord
distinct = options[:distinct] || distinct
if @group_values.any?
- return execute_grouped_calculation(operation, column_name)
+ execute_grouped_calculation(operation, column_name)
else
- return execute_simple_calculation(operation, column_name, distinct)
+ execute_simple_calculation(operation, column_name, distinct)
end
end