Permalink
Browse files

Fix changelog example for count method with block [ci skip]

Missed that too, thanks again @splattael.
  • Loading branch information...
1 parent 959a360 commit c51fb024063b5369a8d99b8c6e582feaf6c5a366 @carlosantoniodasilva carlosantoniodasilva committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/CHANGELOG.md
@@ -3,7 +3,7 @@
* Allow blocks for `count` with `ActiveRecord::Relation`, to work similar as
`Array#count`:
- Person.where("age > 26").count { |person| gender == 'female' }
+ Person.where("age > 26").count { |person| person.gender == 'female' }
*Chris Finne & Carlos Antonio da Silva*

0 comments on commit c51fb02

Please sign in to comment.