Remove code that added now-unused field_with_errors css class
This commit is contained in:
parent
e11ab3c94c
commit
6ddd6dedb1
1 changed files with 0 additions and 9 deletions
|
@ -1,9 +0,0 @@
|
|||
ActionView::Base.field_error_proc = proc do |html_tag, _instance|
|
||||
class_attr_index = html_tag.index 'class="'
|
||||
|
||||
if class_attr_index
|
||||
html_tag.insert class_attr_index + 7, "field_with_errors "
|
||||
else
|
||||
html_tag.insert html_tag.index(%r{/?>}), ' class="field_with_errors"'.html_safe
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue