diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-11-23 19:45:42 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-11-23 19:45:42 -0600 |
commit | f987e8561c2fdbf5f6ade34d68f66b6e7e19d8d3 (patch) | |
tree | c34807b5a9a89fcb6304e3aae89d101e47cf7371 /actionpack/lib/action_dispatch | |
parent | 8d351eac078642505057351e7113100550ed8bc7 (diff) | |
download | rails-f987e8561c2fdbf5f6ade34d68f66b6e7e19d8d3.tar.gz rails-f987e8561c2fdbf5f6ade34d68f66b6e7e19d8d3.tar.bz2 rails-f987e8561c2fdbf5f6ade34d68f66b6e7e19d8d3.zip |
with_controllers is no longer used
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index e0857fb2b1..4bb7713c98 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -280,17 +280,6 @@ module ActionDispatch 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". |