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
|
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)
|
||||||
|
|
Loading…
Reference in New Issue