Sha256: 6f0ea319c8315e659f0b2b416d34d0bc4dbbc787f66898cf5373ce63df7a300d
Contents?: true
Size: 476 Bytes
Versions: 14
Compression:
Stored size: 476 Bytes
Contents
module WashoutBuilder # This class is a Rack middleware used to route SOAP requests to a proper # action of a given SOAP controller. class Router def initialize(controller_path) @controller_path = controller_path end 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 end end
Version data entries
14 entries across 14 versions & 1 rubygems