diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 25e23a9d55862..9d4c6d60f57a1 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -123,7 +123,7 @@ def first(*args) end end - # Same as #first! but raises RecordNotFound if no record is returned + # Same as #first but raises RecordNotFound if no record is returned def first!(*args) self.first(*args) or raise RecordNotFound end @@ -142,7 +142,7 @@ def last(*args) end end - # Same as #last! but raises RecordNotFound if no record is returned + # Same as #last but raises RecordNotFound if no record is returned def last!(*args) self.last(*args) or raise RecordNotFound end