Method: ActiveRecord::FinderMethods#second!
- Defined in:
- lib/active_record/relation/finder_methods.rb
#second! ⇒ Object
Same as second but raises ActiveRecord::RecordNotFound if no record is found.
187 188 189 |
# File 'lib/active_record/relation/finder_methods.rb', line 187 def second! second or raise RecordNotFound end |