@@ -153,7 +153,7 @@ def first(limit = nil)
153153 #
154154 # @return [ Document ] The first document.
155155 #
156- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
156+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
157157 # documents to take.
158158 def first!
159159 first || raise_document_not_found_error
@@ -214,7 +214,7 @@ def last(limit = nil)
214214 #
215215 # @return [ Document ] The last document.
216216 #
217- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
217+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
218218 # documents to take.
219219 def last!
220220 last || raise_document_not_found_error
@@ -312,7 +312,7 @@ def take(limit = nil)
312312 #
313313 # @return [ Document ] The document.
314314 #
315- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
315+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
316316 # documents to take.
317317 def take!
318318 take || raise_document_not_found_error
@@ -373,8 +373,6 @@ def update_all(attributes = nil)
373373 # @example Get the second document.
374374 # context.second
375375 #
376- # @param [ Integer ] limit The number of documents to return.
377- #
378376 # @return [ Document ] The second document.
379377 def second
380378 eager_load ( [ documents . second ] ) . first
@@ -388,7 +386,7 @@ def second
388386 #
389387 # @return [ Document ] The second document.
390388 #
391- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
389+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
392390 # documents to take.
393391 def second!
394392 second || raise_document_not_found_error
@@ -399,8 +397,6 @@ def second!
399397 # @example Get the third document.
400398 # context.third
401399 #
402- # @param [ Integer ] limit The number of documents to return.
403- #
404400 # @return [ Document ] The third document.
405401 def third
406402 eager_load ( [ documents . third ] ) . first
@@ -414,7 +410,7 @@ def third
414410 #
415411 # @return [ Document ] The third document.
416412 #
417- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
413+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
418414 # documents to take.
419415 def third!
420416 third || raise_document_not_found_error
@@ -425,8 +421,6 @@ def third!
425421 # @example Get the fourth document.
426422 # context.fourth
427423 #
428- # @param [ Integer ] limit The number of documents to return.
429- #
430424 # @return [ Document ] The fourth document.
431425 def fourth
432426 eager_load ( [ documents . fourth ] ) . first
@@ -440,7 +434,7 @@ def fourth
440434 #
441435 # @return [ Document ] The fourth document.
442436 #
443- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
437+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
444438 # documents to take.
445439 def fourth!
446440 fourth || raise_document_not_found_error
@@ -451,8 +445,6 @@ def fourth!
451445 # @example Get the fifth document.
452446 # context.fifth
453447 #
454- # @param [ Integer ] limit The number of documents to return.
455- #
456448 # @return [ Document ] The fifth document.
457449 def fifth
458450 eager_load ( [ documents . fifth ] ) . first
@@ -466,7 +458,7 @@ def fifth
466458 #
467459 # @return [ Document ] The fifth document.
468460 #
469- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
461+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
470462 # documents to take.
471463 def fifth!
472464 fifth || raise_document_not_found_error
@@ -477,8 +469,6 @@ def fifth!
477469 # @example Get the second to last document.
478470 # context.second_to_last
479471 #
480- # @param [ Integer ] limit The number of documents to return.
481- #
482472 # @return [ Document ] The second to last document.
483473 def second_to_last
484474 eager_load ( [ documents . second_to_last ] ) . first
@@ -492,7 +482,7 @@ def second_to_last
492482 #
493483 # @return [ Document ] The second to last document.
494484 #
495- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
485+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
496486 # documents to take.
497487 def second_to_last!
498488 second_to_last || raise_document_not_found_error
@@ -503,8 +493,6 @@ def second_to_last!
503493 # @example Get the third to last document.
504494 # context.third_to_last
505495 #
506- # @param [ Integer ] limit The number of documents to return.
507- #
508496 # @return [ Document ] The third to last document.
509497 def third_to_last
510498 eager_load ( [ documents . third_to_last ] ) . first
@@ -518,7 +506,7 @@ def third_to_last
518506 #
519507 # @return [ Document ] The third to last document.
520508 #
521- # @raises [ Mongoid::Errors::DocumentNotFound ] raises when there are no
509+ # @raise [ Mongoid::Errors::DocumentNotFound ] raises when there are no
522510 # documents to take.
523511 def third_to_last!
524512 third_to_last || raise_document_not_found_error
0 commit comments