fix boolean negation in documentation

See a similar fix in 68d35960f3. Reading e1e17a55d2 I'm not exactly sure whether it's intentional or not, but I tend to think it's a typo.

[ci skip]
This commit is contained in:
Sergey Alekseev 2020-10-21 22:13:39 +03:00
parent 7cc2b57b8d
commit c9b001b903
No known key found for this signature in database
GPG Key ID: 781C4863C8D78D81
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ module ActiveRecord
# If the collection has been loaded
# it is equivalent to <tt>collection.size.zero?</tt>. If the
# collection has not been loaded, it is equivalent to
# <tt>collection.exists?</tt>. If the collection has not already been
# <tt>!collection.exists?</tt>. If the collection has not already been
# loaded and you are going to fetch the records anyway it is better to
# check <tt>collection.length.zero?</tt>.
def empty?

View File

@ -181,7 +181,7 @@ An example with a predicate:
# If the collection has been loaded
# it is equivalent to <tt>collection.size.zero?</tt>. If the
# collection has not been loaded, it is equivalent to
# <tt>collection.exists?</tt>. If the collection has not already been
# <tt>!collection.exists?</tt>. If the collection has not already been
# loaded and you are going to fetch the records anyway it is better to
# check <tt>collection.length.zero?</tt>.
def empty?