diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-06-10 20:38:18 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-06-10 20:39:02 -0500 |
commit | e8a0ba4c93e2f0f811675bc6a6720725c866d1a5 (patch) | |
tree | cdc5b46c619c1cc38629e945ec4580934a1a08c9 /actionpack/lib/action_controller/dispatcher.rb | |
parent | 6b280e5b54fb406b4e0fa3626a01c8992ff8ebfb (diff) | |
download | rails-e8a0ba4c93e2f0f811675bc6a6720725c866d1a5.tar.gz rails-e8a0ba4c93e2f0f811675bc6a6720725c866d1a5.tar.bz2 rails-e8a0ba4c93e2f0f811675bc6a6720725c866d1a5.zip |
Ensure view path cache is rebuilt in production mode which was broke by df44df9.
Diffstat (limited to 'actionpack/lib/action_controller/dispatcher.rb')
-rw-r--r-- | actionpack/lib/action_controller/dispatcher.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb index 64553fb25d..f20d9cc40f 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -10,10 +10,6 @@ module ActionController # 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 @@ module ActionController 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 } |