lib/openwfe/contextual.rb in openwferu-0.9.3 vs lib/openwfe/contextual.rb in openwferu-0.9.4
- old
+ new
@@ -66,13 +66,16 @@
end
#
# Use reflection to instantiate the new service,and
# add it to the application context
+ # The service_name can be a String or a Symbol (which will be
+ # turned into a String).
#
def init_service (service_name, service_class)
- @application_context[service_name] = \
- service_class.new(service_name,@application_context)
+
+ @application_context[service_name.to_s] =
+ service_class.new(service_name, @application_context)
end
end
end