aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorAndrii Ponomarov <andrii.ponomarov@gmail.com>2015-07-17 21:03:49 -0400
committerAndrii Ponomarov <andrii.ponomarov@gmail.com>2015-07-17 21:03:49 -0400
commita8e11ff5285c31c91255acfb462e731c1255c080 (patch)
treea01f18de6912b972e4afb37b216a5de8ffbd546a /activerecord/lib/active_record/associations
parent0fedae636ed1e8c4c63e8e6a25644c8838f3613a (diff)
downloadrails-a8e11ff5285c31c91255acfb462e731c1255c080.tar.gz
rails-a8e11ff5285c31c91255acfb462e731c1255c080.tar.bz2
rails-a8e11ff5285c31c91255acfb462e731c1255c080.zip
[ci skip] Fix typo in #any? RDoc
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index ddeafb40ea..19e9ffcb3c 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -781,7 +781,7 @@ module ActiveRecord
# person.pets.any? # => false
#
# person.pets << Pet.new(name: 'Snoop')
- # person.pets.count # => 0
+ # person.pets.count # => 1
# person.pets.any? # => true
#
# You can also pass a +block+ to define criteria. The behavior