1
0
Fork 0
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:
Rafael Mendonça França 2015-09-29 01:46:51 -03:00
commit 1855312db9

View file

@ -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