mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Doc fix (closes #4014) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user