Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit df44df945d6315238e7d94d9bdef82e435dc9b24 1 parent 0c9281e
@josh josh authored
View
2  actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*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]
View
5 actionpack/lib/action_controller/dispatcher.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.