lib/ruote/context.rb in ruote-2.1.3 vs lib/ruote/context.rb in ruote-2.1.4

- old
+ new

@@ -71,11 +71,11 @@ path, klass, opts = args key = "s_#{key}" unless key.match(/^s\_/) - if klass + service = if klass require(path) aa = [ self ] aa << opts if opts @@ -85,9 +85,11 @@ @conf[key] = path end self.class.class_eval %{ def #{key[2..-1]}; @conf['#{key}']; end } + + service end def shutdown @storage.shutdown if @storage.respond_to?(:shutdown)