Method: ActiveRecord::FinderMethods#third_to_last!

Defined in:
activerecord/lib/active_record/relation/finder_methods.rb

#third_to_last!Object

Same as #third_to_last but raises ActiveRecord::RecordNotFound if no record is found.


278
279
280
# File 'activerecord/lib/active_record/relation/finder_methods.rb', line 278

def third_to_last!
  third_to_last || raise_record_not_found_exception!
end