aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-11-28 11:18:28 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-28 11:18:28 -0600
commit9fc23745f1511d8d97433828d9ca87970994d138 (patch)
tree83b606852608845853fc5a005949812dfa5160d6 /railties
parent5fa0457542b0ff541d0a80ff8c3561eec8e35959 (diff)
downloadrails-9fc23745f1511d8d97433828d9ca87970994d138.tar.gz
rails-9fc23745f1511d8d97433828d9ca87970994d138.tar.bz2
rails-9fc23745f1511d8d97433828d9ca87970994d138.zip
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/initializer.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index 0c06d1bf21..a69898e2c5 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -372,9 +372,10 @@ Run `rake gems:install` to install the missing gems.
def load_view_paths
if configuration.frameworks.include?(:action_view)
- ActionView::PathSet::Path.eager_load_templates! if configuration.cache_classes
- ActionController::Base.view_paths.load if configuration.frameworks.include?(:action_controller)
- ActionMailer::Base.template_root.load if configuration.frameworks.include?(:action_mailer)
+ if configuration.cache_classes
+ ActionController::Base.view_paths.load if configuration.frameworks.include?(:action_controller)
+ ActionMailer::Base.template_root.load if configuration.frameworks.include?(:action_mailer)
+ end
end
end