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:
parent
9cd3221a07
commit
6ac37a11e6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue