fix boolean negation in documentation
See a similar fix in68d35960f3
. Readinge1e17a55d2
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:
parent
7cc2b57b8d
commit
c9b001b903
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue