aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-29 09:52:18 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-29 09:52:18 -0800
commit88aeeee288641a3009f05574079d4c50277e77a5 (patch)
tree04d096a88b154e6c4fab5114f22210e46fac35c9 /actionpack/lib/action_dispatch
parentc0904e47f2982c2cd323c44060e99cfbe8e9869a (diff)
downloadrails-88aeeee288641a3009f05574079d4c50277e77a5.tar.gz
rails-88aeeee288641a3009f05574079d4c50277e77a5.tar.bz2
rails-88aeeee288641a3009f05574079d4c50277e77a5.zip
removing dead code.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index e691124193..3b9d8dc57b 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -123,16 +123,7 @@ module ActionDispatch
routes.length
end
- def reset!
- old_routes = routes.dup
- clear!
- old_routes.each do |name, route|
- add(name, route)
- end
- end
-
- def install(destinations = [ActionController::Base, ActionView::Base], regenerate = false)
- reset! if regenerate
+ def install(destinations = [ActionController::Base, ActionView::Base])
Array(destinations).each do |dest|
dest.__send__(:include, @module)
end
@@ -285,9 +276,9 @@ module ActionDispatch
@prepend.each { |blk| eval_block(blk) }
end
- def install_helpers(destinations = [ActionController::Base, ActionView::Base], regenerate_code = false)
+ def install_helpers(destinations = [ActionController::Base, ActionView::Base])
Array(destinations).each { |d| d.module_eval { include Helpers } }
- named_routes.install(destinations, regenerate_code)
+ named_routes.install(destinations)
end
module MountedHelpers