mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix 1.9. uggghhhhhh get it together @tenderlove 💣
This commit is contained in:
parent
993ca82d70
commit
7880f39e1d
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,8 @@ module ActionDispatch
|
|||
routes.call(params)
|
||||
end
|
||||
|
||||
def request_path_params(path, method:)
|
||||
method ||= 'GET'
|
||||
def request_path_params(path, options = {})
|
||||
method = options[:method] || 'GET'
|
||||
resp = send_request URI('http://localhost' + path), method.to_s.upcase, nil
|
||||
status = resp.first
|
||||
if status == 404
|
||||
|
|
Loading…
Reference in a new issue