git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-03-02 02:53:57 +00:00
parent 3fb29b172f
commit 456ddc6f61

View File

@@ -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