This project is archived and is in readonly mode.
Changeset [d5fd83f4c7f01cc1761783408267cce4d5da1946] by Carlos Antonio da Silva
Revision d5fd83f4c7f01cc1761783408267cce4d5da1946,
committed by Carlos Antonio da Silva
· November 11th, 2010 @ 03:24 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.
Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/d5fd83f4c7f01cc1761783408267c...
4 changed files
-
A
actionpack/test/fixtures/test/_partial_with_partial.erb -
M
actionpack/lib/action_view/render/partials.rb -
M
actionpack/lib/action_view/render/rendering.rb -
M
actionpack/test/template/render_test.rb