method
error_wrapping
v2.3.8 -
Show latest stable
- Class:
ActionView::Helpers::InstanceTag
error_wrapping(html_tag, has_error)public
No documentation available.
# File actionpack/lib/action_view/helpers/active_record_helper.rb, line 292
def error_wrapping(html_tag, has_error)
has_error ? Base.field_error_proc.call(html_tag, self) : html_tag
end