提交 b7ccfa96 编写于 作者: A Aaron Patterson

clear! does not need to be called from initialize

上级 59b9fe96
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册