aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/layout.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-02-12 22:42:36 +0000
committerMichael Koziarski <michael@koziarski.com>2008-02-12 22:42:36 +0000
commit46356100d1518c67d005be1fecceb9aea4c72dfd (patch)
tree3be4b7579fe95c45929d3135ea370493519c8c01 /actionpack/lib/action_controller/layout.rb
parent11787b802a1ea8152507e94940f9af394d343c4c (diff)
downloadrails-46356100d1518c67d005be1fecceb9aea4c72dfd.tar.gz
rails-46356100d1518c67d005be1fecceb9aea4c72dfd.tar.bz2
rails-46356100d1518c67d005be1fecceb9aea4c72dfd.zip
Make sure render :update support the options hash. Closes #11088 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/layout.rb')
-rw-r--r--actionpack/lib/action_controller/layout.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/layout.rb b/actionpack/lib/action_controller/layout.rb
index 0fbbfa8b05..e1853ad131 100644
--- a/actionpack/lib/action_controller/layout.rb
+++ b/actionpack/lib/action_controller/layout.rb
@@ -243,7 +243,7 @@ module ActionController #:nodoc:
end
protected
- def render_with_a_layout(options = nil, &block) #:nodoc:
+ def render_with_a_layout(options = nil, extra_options = {}, &block) #:nodoc:
template_with_options = options.is_a?(Hash)
if apply_layout?(template_with_options, options) && (layout = pick_layout(template_with_options, options))
@@ -252,7 +252,7 @@ module ActionController #:nodoc:
options = options.merge :layout => false if template_with_options
logger.info("Rendering template within #{layout}") if logger
- content_for_layout = render_with_no_layout(options, &block)
+ content_for_layout = render_with_no_layout(options, extra_options, &block)
erase_render_results
add_variables_to_assigns
@template.instance_variable_set("@content_for_layout", content_for_layout)
@@ -260,7 +260,7 @@ module ActionController #:nodoc:
status = template_with_options ? options[:status] : nil
render_for_text(@template.render_file(layout, true), status)
else
- render_with_no_layout(options, &block)
+ render_with_no_layout(options, extra_options, &block)
end
end