Skip to content

Commit fac744f

Browse files
committed
Merge pull request rails#20924 from andrii/master
[ci skip] Fix typo in #any? RDoc
2 parents a443c5f + a8e11ff commit fac744f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/associations/collection_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def empty?
781781
# person.pets.any? # => false
782782
#
783783
# person.pets << Pet.new(name: 'Snoop')
784-
# person.pets.count # => 0
784+
# person.pets.count # => 1
785785
# person.pets.any? # => true
786786
#
787787
# You can also pass a +block+ to define criteria. The behavior

0 commit comments

Comments
 (0)