Skip to content

Commit

Permalink
Merge remote branch 'martingordon/patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Sep 3, 2011
2 parents 8888dc9 + eb66e93 commit c1176c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/thinking_sphinx/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ def load_models

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

0 comments on commit c1176c8

Please sign in to comment.