class WashoutBuilder::Router
This class is a Rack middleware used to route SOAP
requests to a proper action of a given SOAP
controller.
Public Class Methods
new(controller_path)
click to toggle source
# File lib/washout_builder/router.rb, line 6 def initialize(controller_path) @controller_path = controller_path end
Public Instance Methods
call(env)
click to toggle source
# File lib/washout_builder/router.rb, line 10 def call(env) env['washout_builder.controller_path'] = @controller_path env["action_dispatch.request.content_type"] = Mime[:html] ::WashoutBuilder::WashoutBuilderController.action(:all).call(env) end