[Haml] Fix a bizarre interaction with ActiveModel.

Closes gh-129
This commit is contained in:
Nathan Weizenbaum 2010-04-17 17:30:10 -07:00
parent 3a1f244b66
commit f467bcf4ae
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,8 @@
* Make sure `form_for` blocks are properly indented under Rails 3.0.0.beta.3.
* Don't prevent ActiveModel form elements from having error formatting applied.
## 2.2.23
[Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.23).

View File

@ -126,7 +126,9 @@ module ActionView
end
def content_tag(*args)
content_tag_with_haml(*args)
html_tag = content_tag_with_haml(*args)
return error_wrapping(html_tag) if respond_to?(:error_wrapping)
return html_tag
end
end