Navigation Menu

Skip to content

Commit

Permalink
Tweak to load_models to handle Rails' quirks - thanks to Joe Noon for…
Browse files Browse the repository at this point in the history
… the patch
  • Loading branch information
pat committed Jul 19, 2008
1 parent df63be1 commit c55a6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/configuration.rb
Expand Up @@ -165,7 +165,7 @@ def load_models
}

begin
model_name.classify.constantize
model_name.camelize.constantize
rescue LoadError
model_name.gsub!(/.*[\/\\]/, '')
retry
Expand Down

0 comments on commit c55a6bf

Please sign in to comment.