提交 f987e856 编写于 作者: J Joshua Peek

with_controllers is no longer used

上级 8d351eac
......@@ -280,17 +280,6 @@ def controller_constraints
Regexp.union(*possible_controllers.collect { |n| Regexp.escape(n) })
end
# Expects an array of controller names as the first argument.
# Executes the passed block with only the named controllers named available.
# This method is used in internal Rails testing.
def with_controllers(names)
prior_controllers = @possible_controllers
use_controllers! names
yield
ensure
use_controllers! prior_controllers
end
# Returns an array of paths, cleaned of double-slashes and relative path references.
# * "\\\" and "//" become "\\" or "/".
# * "/foo/bar/../config" becomes "/foo/config".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册