Sha256: 68b43b43e78490427876f22cf426fe45c177e44f84eff72643c4f1136749cea2
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
require 'wash_out/engine' require 'wash_out/param' require 'wash_out/dispatcher' require 'wash_out/soap' module ActionDispatch::Routing class Mapper # Adds the routes for a SOAP endpoint at +controller+. def wash_out(controller) match "#{controller.to_s}/wsdl" => "#{controller.to_s}#_wsdl" match "#{controller.to_s}/action" => "#{controller.to_s}#_action", :defaults => { :format => 'soap' } end end end Mime::Type.register "application/soap+xml", :soap ActionController::Renderers.add :soap do |what, options| _render_soap(what, options) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wash_out-0.2.1 | lib/wash_out.rb |
wash_out-0.2.0 | lib/wash_out.rb |