mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Ensure that #non_haml properly resets @haml_buffer.active.
This commit is contained in:
parent
2a436fbf92
commit
bf35257f27
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue