Skip to content

Commit

Permalink
Ensure ActionView::TemplateFinder view cache is rebuilt on initialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jun 9, 2008
1 parent 0c9281e commit df44df9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
5 changes: 4 additions & 1 deletion actionpack/lib/action_controller/dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df44df9

Please sign in to comment.