summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/manager.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/manager.rb b/lib/oxidized/manager.rb
index e4a1d7c..892cdfc 100644
--- a/lib/oxidized/manager.rb
+++ b/lib/oxidized/manager.rb
@@ -56,10 +56,10 @@ module Oxidized
private
# try to load locally defined file, instead of upstream provided
- def local_load dir, file
+ def local_load dir, name
dir = File.join(Config::Root, dir)
- return false unless File.exist? File.join(dir, file)
- Manager.load dir, file
+ return false unless File.exist? File.join(dir, name + ".rb")
+ Manager.load dir, name
end
end
end