aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-09-08 14:41:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-09-12 16:50:48 -0700
commitb7ccfa96d2f5b95ec4544716571c1e90f0b89464 (patch)
tree388900ca44a356e1449c121f6a21237f5260bcbe /actionpack/lib/action_dispatch/routing/route_set.rb
parent59b9fe961d2195b35f3934dc6228a248897656e6 (diff)
downloadrails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.tar.gz
rails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.tar.bz2
rails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.zip
clear! does not need to be called from initialize
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 2419e09ee0..000b2a252f 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -225,17 +225,16 @@ module ActionDispatch
self.valid_conditions.delete(:id)
self.valid_conditions.push(:controller, :action)
- @append = []
- @prepend = []
+ @append = []
+ @prepend = []
@disable_clear_and_finalize = false
+ @finalized = false
@set = Journey::Routes.new
@router = Journey::Router.new(@set, {
:parameters_key => PARAMETERS_KEY,
:request_class => request_class})
@formatter = Journey::Formatter.new @set
-
- clear!
end
def draw(&block)