factor 0.0.93 → 0.0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/runtime/engine.rb +1 -1
- metadata +1 -1
data/lib/runtime/engine.rb
CHANGED
@@ -27,7 +27,7 @@ module Factor
|
|
27
27
|
# and the module inside must be camal cased to match
|
28
28
|
# once loaded it is in the channel_modules Hash
|
29
29
|
def load_channel filename
|
30
|
-
file= filename.is_a?(String) ? File.new
|
30
|
+
file= filename.is_a?(String) ? File.new(filename) : filename
|
31
31
|
require file
|
32
32
|
channel_module_name = File.basename(file).gsub('.rb','').split('_').map{|ea| ea.capitalize}.join('')
|
33
33
|
channel_module= self.class.const_get(channel_module_name)
|