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