aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-09 07:20:55 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-09 07:20:55 +0100
commit5ad52152117ecda1166359c499bcd03ae6be3365 (patch)
treed7086230a80f600077c52bd96d5eb3cad55e8c62 /actionpack/CHANGELOG.md
parent2995134cba898c95d62bb9756742959a0839cbf0 (diff)
downloadrails-5ad52152117ecda1166359c499bcd03ae6be3365.tar.gz
rails-5ad52152117ecda1166359c499bcd03ae6be3365.tar.bz2
rails-5ad52152117ecda1166359c499bcd03ae6be3365.zip
Deprecate implicit layout lookup in favor of inheriting the _layout config.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 473115dc6d..e00b4a64f1 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,5 +1,18 @@
## Rails 3.2.0 (unreleased) ##
+* Deprecated implied layout lookup in controllers whose parent had a explicit layout set:
+
+ class ApplicationController
+ layout "application"
+ end
+
+ class PostsController < ApplicationController
+ end
+
+ In the example above, Posts controller will no longer automatically look up for a posts layout.
+
+ If you need this functionality you could either remove `layout "application"` from ApplicationController or explicitly set it to nil in PostsController. *José Valim*
+
* Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. *Prem Sichanugrist*
For example, consider this snippet: