Permalink
Browse files

Fixes #14824 - strip out extraneous nil from `recognize` call

We had a `_` that was used to eat a `nil` which is no longer needed,
see rails/rails@dd1f23d.
  • Loading branch information...
beav committed Apr 28, 2016
1 parent 8c337de commit 421342f61d4b503d7dece36e5b8c95011da17f8c
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
@@ -435,8 +435,8 @@ def client_authorized?
def authorize_proxy_routes
deny_access unless (authenticate || authenticate_client)
route, _, params = Engine.routes.router.recognize(request) do |rte, match, parameters|
break rte, match, parameters if rte.name
route, params = Engine.routes.router.recognize(request) do |rte, parameters|
break rte, parameters if rte.name
end
# route names are defined in routes.rb (:as => :name)

0 comments on commit 421342f

Please sign in to comment.