aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-31 10:10:12 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-31 10:10:12 -0300
commitc51fb024063b5369a8d99b8c6e582feaf6c5a366 (patch)
tree8c014a2d19ec5d970d2f986d36ed7b11267bd335
parent959a36084a75ed9d256276995dc3d3c433bc39e7 (diff)
downloadrails-c51fb024063b5369a8d99b8c6e582feaf6c5a366.tar.gz
rails-c51fb024063b5369a8d99b8c6e582feaf6c5a366.tar.bz2
rails-c51fb024063b5369a8d99b8c6e582feaf6c5a366.zip
Fix changelog example for count method with block [ci skip]
Missed that too, thanks again @splattael.
-rw-r--r--activerecord/CHANGELOG.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 4f4e087acd..59c6154c48 100644
--- a/activerecord/CHANGELOG.md
+++ b/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*