1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

check if block being rendered is haml in capture_with_haml

This commit is contained in:
Christopher Redinger 2008-12-05 15:41:35 -05:00 committed by Nathan Weizenbaum
parent 9cd3221a07
commit 6ac37a11e6

View file

@ -86,7 +86,7 @@ if defined?(ActionView) and not defined?(Merb::Plugins)
else
module CaptureHelper
def capture_with_haml(*args, &block)
if is_haml?
if is_haml? && block_is_haml?(block)
capture_haml(*args, &block)
else
capture_without_haml(*args, &block)