Browse code

FIX: replace path by path from const

Cinan Rakosnik authored on 15/12/2012 at 21:56:28
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@ module Rubysermon
3 3
 
4 4
 		def self.load(new_class)
5 5
 			begin
6
-				require_relative 'mod/' + new_class.downcase
6
+				require "#{LIB_PATH}/rubysermon/mod/#{new_class.downcase}"
7 7
 
8 8
 				capitalized_class = new_class.capitalize
9 9
 				return (Rubysermon.const_get capitalized_class).new