mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #21811 from akihiro17/remove-unused-test-code
Remove TestRouter#add_routes
This commit is contained in:
commit
1855312db9
1 changed files with 0 additions and 11 deletions
|
@ -497,17 +497,6 @@ module ActionDispatch
|
|||
|
||||
private
|
||||
|
||||
def add_routes router, paths, anchor = true
|
||||
paths.each do |path|
|
||||
if String === path
|
||||
path = Path::Pattern.from_string path
|
||||
else
|
||||
path
|
||||
end
|
||||
add_route @app, path, {}, [], {}, {}
|
||||
end
|
||||
end
|
||||
|
||||
def rails_env env, klass = ActionDispatch::Request
|
||||
klass.new(rack_env(env))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue