diff options
author | Andrii Ponomarov <andrii.ponomarov@gmail.com> | 2015-07-17 21:03:49 -0400 |
---|---|---|
committer | Andrii Ponomarov <andrii.ponomarov@gmail.com> | 2015-07-17 21:03:49 -0400 |
commit | a8e11ff5285c31c91255acfb462e731c1255c080 (patch) | |
tree | a01f18de6912b972e4afb37b216a5de8ffbd546a /activerecord | |
parent | 0fedae636ed1e8c4c63e8e6a25644c8838f3613a (diff) | |
download | rails-a8e11ff5285c31c91255acfb462e731c1255c080.tar.gz rails-a8e11ff5285c31c91255acfb462e731c1255c080.tar.bz2 rails-a8e11ff5285c31c91255acfb462e731c1255c080.zip |
[ci skip] Fix typo in #any? RDoc
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 2 |
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 |