Sha256: 2fdd09ba07c32186c93a8a0ab2e26bc965c110aa888067fc3b99930eda7d8b49

Contents?: true

Size: 765 Bytes

Versions: 4

Compression:

Stored size: 765 Bytes

Contents

require 'wash_out/engine'
require 'wash_out/param'
require 'wash_out/dispatcher'
require 'wash_out/soap'
require 'wash_out/router'

module ActionDispatch::Routing
  class Mapper
    # Adds the routes for a SOAP endpoint at +controller+.
    def wash_out(controller_name, options={})
      match "#{controller_name}/wsdl" => "#{controller_name}#_generate_wsdl", :via => :get
      match "#{controller_name}/action" => WashOut::Router.new(controller_name), :defaults => { :action => '_action' }
    end
  end
end

Mime::Type.register "application/soap+xml", :soap

ActionController::Renderers.add :soap do |what, options|
  _render_soap(what, options)
end

module ActionView
  class Base
    cattr_accessor :washout_namespace
    @@washout_namespace = false
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wash_out-0.3.6 lib/wash_out.rb
wash_out-0.3.5 lib/wash_out.rb
wash_out-0.3.4 lib/wash_out.rb
wash_out-0.3.3 lib/wash_out.rb