lib/substation/dispatcher.rb in substation-0.0.9 vs lib/substation/dispatcher.rb in substation-0.0.10.beta2
- old
+ new
@@ -1,7 +1,5 @@
-# encoding: utf-8
-
module Substation
# Encapsulates all registered actions and their observers
#
# The only protocol actions must support is +#call(request)+.
@@ -249,10 +247,10 @@
# @raise [UnknownActionError]
# if no action is registered for +name+
#
# @api public
def call(name, input)
- fetch(name).call(Request.new(name, env, input))
+ fetch(name).call(Request.new(env, input))
end
# The names of all registered actions
#
# @example