summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/manager.rb2
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