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.
- Loading branch information...
Showing with 12 additions and 0 deletions.
|@@ -0,0 +1,2 @@|
|+<%= render 'test/partial' %>|
|+partial with partial|