aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-02 02:53:57 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-02 02:53:57 +0000
commit456ddc6f618003bc2263abf3e0995e09b78b10e9 (patch)
tree3db277ccf02b01d13785d58a5586e0a605e485e8
parent3fb29b172fb1ab0b84fd69747b62711ed5cdf4ca (diff)
downloadrails-456ddc6f618003bc2263abf3e0995e09b78b10e9.tar.gz
rails-456ddc6f618003bc2263abf3e0995e09b78b10e9.tar.bz2
rails-456ddc6f618003bc2263abf3e0995e09b78b10e9.zip
Doc fix (closes #4014) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/lib/active_record/calculations.rb2
1 files changed, 1 insertions, 1 deletions
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