提交 df44df94 编写于 作者: J Joshua Peek

Ensure ActionView::TemplateFinder view cache is rebuilt on initialize.

上级 0c9281e8
*Edge*
* Ensure ActionView::TemplateFinder view cache is rebuilt on initialize [Josh Peek]
* Drop ActionController::Base.allow_concurrency flag [Josh Peek]
* More efficient concat and capture helpers. Remove ActionView::Base.erb_variable. [Jeremy Kemper]
......
......@@ -10,6 +10,10 @@ def define_dispatcher_callbacks(cache_classes)
# Development mode callbacks
before_dispatch :reload_application
after_dispatch :cleanup_application
to_prepare :reload_view_path_cache do
ActionView::TemplateFinder.reload! unless ActionView::Base.cache_template_loading
end
end
# Common callbacks
......@@ -134,7 +138,6 @@ def reload_application
run_callbacks :prepare_dispatch
Routing::Routes.reload
ActionView::TemplateFinder.reload! unless ActionView::Base.cache_template_loading
end
# Cleanup the application by clearing out loaded classes so they can
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册