aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-15 17:32:10 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-15 17:32:10 -0700
commit3c15cba17519e7a4acc3958662f8f3693837c179 (patch)
tree9cf370a4ac9da9eee54130633b297209fd9d02d1 /actionpack/lib/action_controller
parent19c3495a671c364e0dc76c276efbcd9dc6914c74 (diff)
downloadrails-3c15cba17519e7a4acc3958662f8f3693837c179.tar.gz
rails-3c15cba17519e7a4acc3958662f8f3693837c179.tar.bz2
rails-3c15cba17519e7a4acc3958662f8f3693837c179.zip
Whoops, I guess we broke layouts ;)
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/abstract/layouts.rb6
-rw-r--r--actionpack/lib/action_controller/base/base.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/abstract/layouts.rb b/actionpack/lib/action_controller/abstract/layouts.rb
index 9ff8e9beb1..2ac4e6068a 100644
--- a/actionpack/lib/action_controller/abstract/layouts.rb
+++ b/actionpack/lib/action_controller/abstract/layouts.rb
@@ -9,6 +9,11 @@ module AbstractController
end
module ClassMethods
+ def inherited(klass)
+ super
+ klass._write_layout_method
+ end
+
# Specify the layout to use for this class.
#
# If the specified layout is a:
@@ -78,6 +83,7 @@ module AbstractController
end
ruby_eval
end
+ self.class_eval { private :_layout }
end
end
diff --git a/actionpack/lib/action_controller/base/base.rb b/actionpack/lib/action_controller/base/base.rb
index e8fc153578..e541d24e31 100644
--- a/actionpack/lib/action_controller/base/base.rb
+++ b/actionpack/lib/action_controller/base/base.rb
@@ -71,12 +71,6 @@ module ActionController
@subclasses ||= []
end
- def self.app_loaded!
- @subclasses.each do |subclass|
- subclass.constantize._write_layout_method
- end
- end
-
def _normalize_options(action = nil, options = {}, &blk)
if action.is_a?(Hash)
options, action = action, nil