instance method
third!
Ruby on Rails 4.1.16
Since v4.1.16Signature
third!()
Same as third but raises ActiveRecord::RecordNotFound if no record is found.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 203
def third!
third or raise RecordNotFound
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 203
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods