Skip to content
Browse files

Ensure view path cache is rebuilt in production mode which was broke by

  • Loading branch information...
1 parent 6b280e5 commit e8a0ba4c93e2f0f811675bc6a6720725c866d1a5 @josh josh committed Jun 10, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_controller/dispatcher.rb
View
8 actionpack/lib/action_controller/dispatcher.rb
@@ -10,10 +10,6 @@ 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
@@ -25,6 +21,10 @@ def define_dispatcher_callbacks(cache_classes)
end
end
+ to_prepare :reload_view_path_cache do
+ ActionView::TemplateFinder.reload!
+ end
+
if defined?(ActiveRecord)
before_dispatch { ActiveRecord::Base.verify_active_connections! }
to_prepare(:activerecord_instantiate_observers) { ActiveRecord::Base.instantiate_observers }

0 comments on commit e8a0ba4

Please sign in to comment.
Something went wrong with that request. Please try again.