Permalink
Browse files

Merge pull request #49 from codl/patch-1

Fix typo in example for sum
  • Loading branch information...
2 parents 67231ab + b91335f commit f1059ccb28e31923db359da408677bfbdf22a71f @namelessjon namelessjon committed Mar 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/find.md
View
@@ -387,7 +387,7 @@ Friend.avg(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the averag
# Get the total value of a property
Friend.sum(:age) # returns total age of all friends
-Friend.max(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the total age of all female friends
+Friend.sum(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the total age of all female friends
{% endhighlight %}
Multiple aggregates

0 comments on commit f1059cc

Please sign in to comment.