Ensure that #non_haml properly resets @haml_buffer.active.

This commit is contained in:
Nathan Weizenbaum 2008-11-23 01:57:24 -08:00
parent 2a436fbf92
commit bf35257f27
1 changed files with 2 additions and 2 deletions

View File

@ -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: