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
1 changed files with 1 additions and 1 deletions

View File

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