lib/washout_builder.rb
# Adds the routes for a SOAP endpoint at +controller+.
Adds the routes for a SOAP endpoint at +controller+.
Adds the routes for a SOAP endpoint at + controller + .
def wash_out(controller_name, options={})
    env_checker = WashoutBuilder::EnvChecker.new(Rails.application)
    if env_checker.available_for_env?(Rails.env)
      options = options.symbolize_keys if options.is_a?(Hash)
      if @scope
        scope_frame = @scope.respond_to?(:frame) ? @scope.frame : @scope
        options[:module] = options[:module].to_s.underscore if options[:module].present?
        options.each { |key, value|  scope_frame[key] = value }
        controller_class_name = [scope_frame[:module], controller_name].compact.join("/").underscore
      else
        controller_class_name = controller_name.to_s.underscore
      end
      match "#{controller_name}/soap_doc" => WashoutBuilder::Router.new(controller_class_name), via: :get,
      as: "#{controller_class_name}_soap_doc"
    end
    original_wash_out(controller_name, options)
  end
def wash_out ( controller_name , options = { } ) env_checker = WashoutBuilder :: EnvChecker . new ( Rails . application ) if env_checker . available_for_env? ( Rails . env ) options = options . symbolize_keys if options . is_a? ( Hash ) if @scope scope_frame = @scope . respond_to? ( :frame ) ? @scope . frame : @scope options [ :module ] = options [ :module ] . to_s . underscore if options [ :module ] . present? options . each { | key , value | scope_frame [ key ] = value } controller_class_name = [ scope_frame [ :module ] , controller_name ] . compact . join ( "/" ) . underscore else controller_class_name = controller_name . to_s . underscore end match "#{controller_name}/soap_doc" => WashoutBuilder :: Router . new ( controller_class_name ) , via : :get , as : "#{controller_class_name}_soap_doc" end original_wash_out ( controller_name , options ) end
Adds the routes for a SOAP endpoint at +controller+.
Adds the routes for a SOAP endpoint at + controller + .
# needed for backward compatibility with old version when this module name was camelized
controller_name
<not_specific>
options
<not_specific>