clear! does not need to be called from initialize

This commit is contained in:
Aaron Patterson
2011-09-08 14:41:12 -07:00
parent 59b9fe961d
commit b7ccfa96d2

View File

@@ -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)