This project is archived and is in readonly mode.
Changeset [7846fb79e1296986c41250bfea2e115e7683fa61] by Carlos Antonio da Silva
Revision 7846fb79e1296986c41250bfea2e115e7683fa61,
committed by Carlos Antonio da Silva
· November 11th, 2010 @ 03:22 PM
Fix render partial with layout and no block
When using a render :partial with :layout call, without giving a
block,
if the given :partial had another render :partial call, the layout
was
not being rendered. This commit fixes this context by storing
variables
before rendering the partial, so they are not overrided in any
successive
call to render partials down the path. All ActionPack tests are
ok.
https://github.com/rails/rails/commit/7846fb79e1296986c41250bfea2e1...
2 changed files
-
A
actionpack/test/fixtures/test/_partial_with_partial.erb -
M
actionpack/test/template/render_test.rb