summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-07-03 13:20:12 +0300
committerSaku Ytti <saku@ytti.fi>2014-07-03 13:20:12 +0300
commit646794b7f1aca52914d76e95b4601d4b868c7217 (patch)
treec315b22d01c4256655828841a46b379a955f585a
parentb0914b02b29383ccd5607d5d86c75c9177ae99ee (diff)
parent8ece44ee0830fcd37bb945ad3604a09cfb7d3329 (diff)
Merge branch 'master' of https://github.com/ytti/oxidized
-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