lib/openwfe/contextual.rb in openwferu-0.9.16 vs lib/openwfe/contextual.rb in openwferu-0.9.17
- old
+ new
@@ -1,8 +1,8 @@
#
#--
-# Copyright (c) 2006-2007, John Mettraux, Nicolas Modrzyk OpenWFE.org
+# Copyright (c) 2006-2008, John Mettraux, Nicolas Modrzyk OpenWFE.org
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
@@ -73,10 +73,10 @@
# The service_name can be a String or a Symbol (which will be
# turned into a String).
#
def init_service (service_name, service_class)
- s = service_class.new(service_name, @application_context)
+ s = service_class.new service_name, @application_context
unless service_name
s.service_name = "#{service_class.name}::#{s.object_id}"
@application_context[s.service_name.to_s] = s
end