Skip to content

Commit

Permalink
Merge pull request #208 from bogdanRada/master
Browse files Browse the repository at this point in the history
Fixed issue with NoMethodError in ActionDispatch::Routing::Mapper with Rails 5  ( backward compatible )
  • Loading branch information
inossidabile committed May 29, 2016
2 parents d22b670 + 95c932b commit 1a01234
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/wash_out.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ module ActionDispatch::Routing
class Mapper
# Adds the routes for a SOAP endpoint at +controller+.
def wash_out(controller_name, options={})
options.each_with_index { |key, value| @scope[key] = value } if @scope
if @scope
scope_frame = @scope.respond_to?(:frame) ? @scope.frame : @scope
options.each_with_index { |key, value| scope_frame[key] = value }
end

controller_class_name = [options[:module], controller_name].compact.join("/")

match "#{controller_name}/wsdl" => "#{controller_name}#_generate_wsdl", :via => :get, :format => false
Expand Down

0 comments on commit 1a01234

Please sign in to comment.