Skip to content
This repository
Browse code

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
David Heinemeier Hansson authored March 02, 2006
2  activerecord/lib/active_record/calculations.rb
@@ -87,7 +87,7 @@ def maximum(column_name, options = {})
87 87
 
88 88
       # 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.
89 89
       #
90  
-      #   Person.maximum('age')
  90
+      #   Person.sum('age')
91 91
       def sum(column_name, options = {})
92 92
         calculate(:sum, column_name, options)
93 93
       end

0 notes on commit 456ddc6

Please sign in to comment.
Something went wrong with that request. Please try again.