Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Raise LoadError instead of a runtime exception [#1498 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
karmi authored and lifo committed Mar 7, 2009
1 parent a0bb8bc commit 4185fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/fixtures/plugins/engines/engine/init.rb
@@ -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)

0 comments on commit 4185fb1

Please sign in to comment.