lib/haml/helpers/action_view_mods.rb in haml-3.2.0.beta.3 vs lib/haml/helpers/action_view_mods.rb in haml-3.2.0.rc.1

- old
+ new

@@ -37,10 +37,11 @@ module Helpers 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 + #double assignment is to avoid warnings + _hamlout = _hamlout = eval('_hamlout', block.binding) # Necessary since capture_haml checks _hamlout value = nil buffer = capture_haml(*args) { value = yield(*args) } str = if !buffer.empty? buffer