# File lib/haml/helpers/action_view_mods.rb, line 144 144: def content_tag(*args, &block) 145: html_tag = content_tag_with_haml(*args, &block) 146: return html_tag unless respond_to?(:error_wrapping) 147: return error_wrapping(html_tag) if method(:error_wrapping).arity == 1 148: return html_tag unless object.respond_to?(:errors) && object.errors.respond_to?(:on) 149: return error_wrapping(html_tag, object.errors.on(@method_name)) 150: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.