From 456ddc6f618003bc2263abf3e0995e09b78b10e9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 2 Mar 2006 02:53:57 +0000 Subject: Doc fix (closes #4014) [thijs@fngtps.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/calculations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/calculations.rb') 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 -- cgit v1.2.3