mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ensure ActionView::TemplateFinder view cache is rebuilt on initialize.
This commit is contained in:
parent
0c9281e821
commit
df44df945d
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
*Edge*
|
*Edge*
|
||||||
|
|
||||||
|
* Ensure ActionView::TemplateFinder view cache is rebuilt on initialize [Josh Peek]
|
||||||
|
|
||||||
* Drop ActionController::Base.allow_concurrency flag [Josh Peek]
|
* Drop ActionController::Base.allow_concurrency flag [Josh Peek]
|
||||||
|
|
||||||
* More efficient concat and capture helpers. Remove ActionView::Base.erb_variable. [Jeremy Kemper]
|
* More efficient concat and capture helpers. Remove ActionView::Base.erb_variable. [Jeremy Kemper]
|
||||||
|
|
|
@ -10,6 +10,10 @@ module ActionController
|
||||||
# Development mode callbacks
|
# Development mode callbacks
|
||||||
before_dispatch :reload_application
|
before_dispatch :reload_application
|
||||||
after_dispatch :cleanup_application
|
after_dispatch :cleanup_application
|
||||||
|
|
||||||
|
to_prepare :reload_view_path_cache do
|
||||||
|
ActionView::TemplateFinder.reload! unless ActionView::Base.cache_template_loading
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Common callbacks
|
# Common callbacks
|
||||||
|
@ -134,7 +138,6 @@ module ActionController
|
||||||
run_callbacks :prepare_dispatch
|
run_callbacks :prepare_dispatch
|
||||||
|
|
||||||
Routing::Routes.reload
|
Routing::Routes.reload
|
||||||
ActionView::TemplateFinder.reload! unless ActionView::Base.cache_template_loading
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cleanup the application by clearing out loaded classes so they can
|
# Cleanup the application by clearing out loaded classes so they can
|
||||||
|
|
Loading…
Reference in a new issue