mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Raise LoadError instead of a runtime exception [#1498 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
parent
a0bb8bcb16
commit
4185fb1e58
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
# My app/models dir must be in the load path.
|
||||
require 'engine_model'
|
||||
raise 'missing model from my app/models dir' unless defined?(EngineModel)
|
||||
raise LoadError, 'missing model from my app/models dir' unless defined?(EngineModel)
|
||||
|
|
Loading…
Reference in a new issue