class Object
Public Class Methods
config()
click to toggle source
# File lib/washout_builder.rb, line 70 def self.config original_config.merge(description: nil) end
keys()
click to toggle source
# File lib/washout_builder.rb, line 66 def self.keys @keys = config.keys end
Public Instance Methods
wash_out(controller_name, options={})
click to toggle source
Adds the routes for a SOAP endpoint at controller
.
# File lib/washout_builder.rb, line 14 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 # needed for backward compatibility with old version when this module name was camelized 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