Permalink
Browse files

clear! does not need to be called from initialize

  • Loading branch information...
tenderlove committed Sep 8, 2011
1 parent 59b9fe9 commit b7ccfa96d2f5b95ec4544716571c1e90f0b89464
Showing with 3 additions and 4 deletions.
  1. +3 −4 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -225,17 +225,16 @@ def initialize(request_class = ActionDispatch::Request)
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)

0 comments on commit b7ccfa9

Please sign in to comment.