Fix partial layouts.

Closes gh-403
Closes gh-412
Closes gh-417
This commit is contained in:
Nathan Weizenbaum 2011-09-08 18:11:09 -07:00
parent 08143c5b5f
commit e617535692
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.1.3 (Unreleased)
* Stop partial layouts from being displayed twice.
## 3.1.2
* If the ActionView `#capture` helper is used in a Haml template but without any Haml being run in the block,

View File

@ -88,6 +88,7 @@ module ActionView
module CaptureHelper
def capture_with_haml(*args, &block)
if Haml::Helpers.block_is_haml?(block)
_hamlout = eval('_hamlout', block.binding) # Necessary since capture_haml checks _hamlout
value = nil
buffer = capture_haml(*args) { value = yield(*args) }
str =