aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/calculations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/calculations.rb')
-rw-r--r--activerecord/lib/active_record/calculations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/calculations.rb b/activerecord/lib/active_record/calculations.rb
index f2194db5df..8988ebf4e8 100644
--- a/activerecord/lib/active_record/calculations.rb
+++ b/activerecord/lib/active_record/calculations.rb
@@ -87,7 +87,7 @@ module ActiveRecord
# Calculates the sum value on a given column. The value is returned with the same data type of the column.. See #calculate for examples with options.
#
- # Person.maximum('age')
+ # Person.sum('age')
def sum(column_name, options = {})
calculate(:sum, column_name, options)
end