Method: ActiveRecord::FinderMethods#second!
- Defined in:
- activerecord/lib/active_record/relation/finder_methods.rb
#second! ⇒ Object
Same as #second but raises ActiveRecord::RecordNotFound if no record is found.
229 230 231 |
# File 'activerecord/lib/active_record/relation/finder_methods.rb', line 229 def second! second || raise_record_not_found_exception! end |