Skip to content

Commit

Permalink
Don't suppress LoadError and NameError when loading models.
Browse files Browse the repository at this point in the history
  • Loading branch information
martingordon committed Sep 1, 2011
1 parent 780fb80 commit c2024b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/thinking_sphinx/context.rb
Expand Up @@ -62,10 +62,6 @@ def load_models

begin
camelized_model.constantize
rescue LoadError
model_name.gsub!(/.*[\/\\]/, '').nil? ? next : retry
rescue NameError
next
rescue StandardError => err
STDERR.puts "Warning: Error loading #{file}:"
STDERR.puts err.message
Expand Down

0 comments on commit c2024b0

Please sign in to comment.