File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -227,12 +227,11 @@ An example with a predicate:
227
227
``` ruby
228
228
# Returns true if the collection is empty.
229
229
#
230
- # If the collection has been loaded
231
- # it is equivalent to <tt>collection.size.zero?</tt>. If the
232
- # collection has not been loaded, it is equivalent to
233
- # <tt>!collection.exists?</tt>. If the collection has not already been
234
- # loaded and you are going to fetch the records anyway it is better to
235
- # check <tt>collection.length.zero?</tt>.
230
+ # If the collection has been loaded it is equivalent to
231
+ # +collection.size.zero?+. If the collection has not been loaded,
232
+ # it is equivalent to +!collection.exists?+. If the collection has
233
+ # not already been loaded and you are going to fetch the records
234
+ # anyway it is better to check +collection.length.zero?+.
236
235
def empty?
237
236
if loaded?
238
237
size.zero?
You can’t perform that action at this time.
0 commit comments