instance method
third_to_last!
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
third_to_last!()
Same as #third_to_last but raises ActiveRecord::RecordNotFound if no record is found.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 252
def third_to_last!
third_to_last || raise_record_not_found_exception!
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 252
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods