Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/wash_out.rb
Instance Method Summary collapse
-
#wash_out(controller_name, options = {}) ⇒ Object
Adds the routes for a SOAP endpoint at
controller
.
Instance Method Details
#wash_out(controller_name, options = {}) ⇒ Object
Adds the routes for a SOAP endpoint at controller
.
23 24 25 26 27 28 29 |
# File 'lib/wash_out.rb', line 23 def wash_out(controller_name, ={}) .each_with_index { |key, value| @scope[key] = value } if @scope controller_class_name = [[:module], controller_name].compact.join("/") match "#{controller_name}/wsdl" => "#{controller_name}#_generate_wsdl", :via => :get, :format => false match "#{controller_name}/action" => WashOut::Router.new(controller_class_name), :via => [:get, :post], :defaults => { :controller => controller_class_name, :action => '_action' }, :format => false end |