We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fedae6 commit a8e11ffCopy full SHA for a8e11ff
activerecord/lib/active_record/associations/collection_proxy.rb
@@ -781,7 +781,7 @@ def empty?
781
# person.pets.any? # => false
782
#
783
# person.pets << Pet.new(name: 'Snoop')
784
- # person.pets.count # => 0
+ # person.pets.count # => 1
785
# person.pets.any? # => true
786
787
# You can also pass a +block+ to define criteria. The behavior
0 commit comments