Method: ActiveNode::FinderMethods#first!
- Defined in:
- lib/active_node/graph/finder_methods.rb
#first! ⇒ Object
Same as first but raises ActiveRecord::RecordNotFound if no record is found. Note that first! accepts no arguments.
136 137 138 |
# File 'lib/active_node/graph/finder_methods.rb', line 136 def first! first or raise RecordNotFound end |