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

Version Path
washout_builder-2.0.5 lib/washout_builder/router.rb
washout_builder-2.0.4 lib/washout_builder/router.rb
washout_builder-2.0.3 lib/washout_builder/router.rb
washout_builder-2.0.2 lib/washout_builder/router.rb
washout_builder-2.0.0 lib/washout_builder/router.rb
washout_builder-1.7.5 lib/washout_builder/router.rb
washout_builder-1.7.4 lib/washout_builder/router.rb
washout_builder-1.7.3 lib/washout_builder/router.rb
washout_builder-1.7.2 lib/washout_builder/router.rb
washout_builder-1.7.1 lib/washout_builder/router.rb
washout_builder-1.7.0 lib/washout_builder/router.rb
washout_builder-1.6.5 lib/washout_builder/router.rb
washout_builder-1.6.4 lib/washout_builder/router.rb
washout_builder-1.6.3 lib/washout_builder/router.rb