1
0
Fork 0
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:
karmi 2009-03-07 16:02:52 +00:00 committed by Pratik Naik
parent a0bb8bcb16
commit 4185fb1e58

View file

@ -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)