Ensure that #non_haml properly resets @haml_buffer.active.
This commit is contained in:
parent
2a436fbf92
commit
bf35257f27
|
@ -54,9 +54,9 @@ module Haml
|
|||
def non_haml
|
||||
was_active = @haml_buffer.active?
|
||||
@haml_buffer.active = false
|
||||
res = yield
|
||||
yield
|
||||
ensure
|
||||
@haml_buffer.active = was_active
|
||||
res
|
||||
end
|
||||
|
||||
# call-seq:
|
||||
|
|
Loading…
Reference in New Issue