diff options
-rw-r--r-- | lib/oxidized/manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/manager.rb b/lib/oxidized/manager.rb index f901a5f..ed49b7e 100644 --- a/lib/oxidized/manager.rb +++ b/lib/oxidized/manager.rb @@ -10,7 +10,7 @@ module Oxidized require File.join dir, file+'.rb' klass = nil [Oxidized, Object].each do |mod| - klass = mod.constants.find { |const| const.to_s.downcase.match file.downcase } + klass = mod.constants.find { |const| const.to_s.downcase == file.downcase } klass = mod.const_get klass if klass break if klass end |