diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-08-30 20:18:54 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-08-30 20:18:54 +0100 |
commit | e12abb6e8a454775c31ec9e282d5abf9246a9e4a (patch) | |
tree | 577c66c9db7541b81261106a1c7c51efc926c62f | |
parent | afea4c9b0edb895d3d7ded6bbf45fc55739a96c6 (diff) | |
download | rails-e12abb6e8a454775c31ec9e282d5abf9246a9e4a.tar.gz rails-e12abb6e8a454775c31ec9e282d5abf9246a9e4a.tar.bz2 rails-e12abb6e8a454775c31ec9e282d5abf9246a9e4a.zip |
Dont pass controller partial layout option to view
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/layout.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 3b0f19475e..a1b210a54f 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -897,7 +897,7 @@ module ActionController #:nodoc: render_for_text(@template.render(options), options[:status]) elsif action_name = options[:action] - render_for_file(default_template_name(action_name.to_s), options[:status], nil, options[:locals] || {}) + render_for_file(default_template_name(action_name.to_s), options[:status]) elsif xml = options[:xml] response.content_type ||= Mime::XML diff --git a/actionpack/lib/action_controller/layout.rb b/actionpack/lib/action_controller/layout.rb index 8b6febe254..fd743ced38 100644 --- a/actionpack/lib/action_controller/layout.rb +++ b/actionpack/lib/action_controller/layout.rb @@ -245,7 +245,7 @@ module ActionController #:nodoc: template_with_options = options.is_a?(Hash) if (layout = pick_layout(template_with_options, options)) && apply_layout?(template_with_options, options) - options = options.merge :layout => false if template_with_options + options.delete(:layout) if template_with_options logger.info("Rendering template within #{layout}") if logger content_for_layout = render_with_no_layout(options, extra_options, &block) |