提交 fc118d0b 编写于 作者: Ł Łukasz Strzałkowski

Remove unused ActionDispatch::RoutingVerbs

上级 81e5be06
......@@ -268,6 +268,7 @@ def assert_header(name, value)
end
end
# Emulate AV railtie.
ActionController::Base.superclass.send(:include, ActionView::Layouts)
module ActionController
......@@ -332,21 +333,6 @@ def stderr_logger
end
end
module ActionDispatch
module RoutingVerbs
def get(uri_or_host, path = nil)
host = uri_or_host.host unless path
path ||= uri_or_host.path
params = {'PATH_INFO' => path,
'REQUEST_METHOD' => 'GET',
'HTTP_HOST' => host}
routes.call(params)[2].join
end
end
end
module RoutingTestHelpers
def url_for(set, options, recall = nil)
set.send(:url_for, options.merge(:only_path => true, :_recall => recall))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册