Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Doc fix (closes #4014) [thijs@fngtps.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 456ddc6f618003bc2263abf3e0995e09b78b10e9 1 parent 3fb29b1
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/calculations.rb
View
2  activerecord/lib/active_record/calculations.rb
@@ -87,7 +87,7 @@ def maximum(column_name, options = {})
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.