Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #49 from codl/patch-1
Browse files Browse the repository at this point in the history
Fix typo in example for sum
  • Loading branch information
namelessjon committed Mar 17, 2014
2 parents 67231ab + b91335f commit f1059cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/find.md
Expand Up @@ -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
Expand Down

0 comments on commit f1059cc

Please sign in to comment.