lib/adhearsion/router/route.rb in adhearsion-2.0.0.alpha1 vs lib/adhearsion/router/route.rb in adhearsion-2.0.0.alpha2
- old
+ new
@@ -20,12 +20,10 @@
end
def dispatcher
@dispatcher ||= lambda do |call|
controller = if target.respond_to?(:call)
- DialplanController.new(call).tap do |controller|
- controller.dialplan = target
- end
+ CallController.new call, &target
else
target.new call
end
call.execute_controller controller