aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/abstract/layouts.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-03-19 15:45:48 -0700
committerYehuda Katz <wycats@gmail.com>2009-03-19 15:45:48 -0700
commit890321e51e0c51f61f9198d247727e98f7485899 (patch)
tree19457c8d5e9bff3d3b3b16fc4861964e5297957c /actionpack/lib/action_controller/abstract/layouts.rb
parent8ab37c76608d7105c47566e79b85fcf72cb11e4b (diff)
downloadrails-890321e51e0c51f61f9198d247727e98f7485899.tar.gz
rails-890321e51e0c51f61f9198d247727e98f7485899.tar.bz2
rails-890321e51e0c51f61f9198d247727e98f7485899.zip
Get very basic layouts working.
* Required small architecture change
Diffstat (limited to 'actionpack/lib/action_controller/abstract/layouts.rb')
-rw-r--r--actionpack/lib/action_controller/abstract/layouts.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/abstract/layouts.rb b/actionpack/lib/action_controller/abstract/layouts.rb
index c8d6e77fce..c6b99a6d45 100644
--- a/actionpack/lib/action_controller/abstract/layouts.rb
+++ b/actionpack/lib/action_controller/abstract/layouts.rb
@@ -1,10 +1,7 @@
module AbstractController
module Layouts
- def _render_template(tmp)
- _action_view._render_template_with_layout(tmp, _layout)
- end
-
- def _layout
+ def _render_template(template, options)
+ _action_view._render_template_with_layout(template, options[:_layout])
end
end
end \ No newline at end of file