aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-11-26 20:54:47 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-26 20:54:47 -0600
commit4d910b033379727e5e7355590c50c72fc75e56db (patch)
treeada3e45bf32d37d8f17f6ea944c8400912da26a8 /actionpack/lib/action_controller/base.rb
parent9d2002a12a473f5b35c52db82518f4631776414f (diff)
downloadrails-4d910b033379727e5e7355590c50c72fc75e56db.tar.gz
rails-4d910b033379727e5e7355590c50c72fc75e56db.tar.bz2
rails-4d910b033379727e5e7355590c50c72fc75e56db.zip
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.
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r--actionpack/lib/action_controller/base.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 7e38f95076..dca66ff0a5 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -867,8 +867,9 @@ module ActionController #:nodoc:
end
end
- response.layout = layout = pick_layout(options)
- logger.info("Rendering template within #{layout}") if logger && layout
+ layout = pick_layout(options)
+ response.layout = layout.path_without_format_and_extension if layout
+ logger.info("Rendering template within #{layout.path_without_format_and_extension}") if logger && layout
if content_type = options[:content_type]
response.content_type = content_type.to_s