Skip to content
  • Carlos Antonio da Silva's avatar
    d5fd83f4
    Fix render partial with layout and no block · d5fd83f4
    Carlos Antonio da Silva authored
    
    
    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: default avatarJosé Valim <jose.valim@gmail.com>
    d5fd83f4
    Fix render partial with layout and no block
    Carlos Antonio da Silva authored
    
    
    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: default avatarJosé Valim <jose.valim@gmail.com>
Loading