Skip to content

Commit 0f1de28

Browse files
prathamesh-sonpatkirafaelfranca
authored andcommitted
Merge pull request rails#25844 from tyamagu2/empty_typo
[ci skip] fix a typo
1 parent c3957ee commit 0f1de28

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
@@ -787,7 +787,7 @@ def length
787787
# Returns +true+ if the collection is empty. If the collection has been
788788
# loaded it is equivalent
789789
# to <tt>collection.size.zero?</tt>. If the collection has not been loaded,
790-
# it is equivalent to <tt>collection.exists?</tt>. If the collection has
790+
# it is equivalent to <tt>!collection.exists?</tt>. If the collection has
791791
# not already been loaded and you are going to fetch the records anyway it
792792
# is better to check <tt>collection.length.zero?</tt>.
793793
#

0 commit comments

Comments
 (0)