method
error_wrapping
v3.2.8 -
Show latest stable
- Class:
ActionView::Helpers::ActiveModelInstanceTag
error_wrapping(html_tag)public
No documentation available.
# File actionpack/lib/action_view/helpers/active_model_helper.rb, line 27
def error_wrapping(html_tag)
if object_has_errors?
Base.field_error_proc.call(html_tag, self)
else
html_tag
end
end