class ActionView::Helpers::InstanceTag

Public Instance Methods

content_tag(*args, &block) click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 101
def content_tag(*args, &block)
  html_tag = content_tag_with_haml(*args, &block)
  return html_tag unless respond_to?(:error_wrapping)
  return error_wrapping(html_tag) if method(:error_wrapping).arity == 1
  return html_tag unless object.respond_to?(:errors) && object.errors.respond_to?(:on)
  return error_wrapping(html_tag, object.errors.on(@method_name))
end