Please sign in to comment.
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 <firstname.lastname@example.org>
- Loading branch information...
Showing with 17 additions and 3 deletions.
|@@ -0,0 +1,2 @@|
|+<%= render 'test/partial' %>|
|+partial with partial|