check if block being rendered is haml in capture_with_haml
This commit is contained in:
parent
9cd3221a07
commit
6ac37a11e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue