Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

with_controllers is no longer used

  • Loading branch information...
commit f987e8561c2fdbf5f6ade34d68f66b6e7e19d8d3 1 parent 8d351ea
@josh josh authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 actionpack/lib/action_dispatch/routing.rb
View
11 actionpack/lib/action_dispatch/routing.rb
@@ -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".
Please sign in to comment.
Something went wrong with that request. Please try again.