diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-08 14:41:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-12 16:50:48 -0700 |
commit | b7ccfa96d2f5b95ec4544716571c1e90f0b89464 (patch) | |
tree | 388900ca44a356e1449c121f6a21237f5260bcbe /actionpack | |
parent | 59b9fe961d2195b35f3934dc6228a248897656e6 (diff) | |
download | rails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.tar.gz rails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.tar.bz2 rails-b7ccfa96d2f5b95ec4544716571c1e90f0b89464.zip |
clear! does not need to be called from initialize
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 7 |
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) |