]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5427'
authorTom Hughes <tom@compton.nu>
Fri, 20 Dec 2024 13:45:23 +0000 (13:45 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Dec 2024 13:45:23 +0000 (13:45 +0000)
config/initializers/field_error.rb [deleted file]

diff --git a/config/initializers/field_error.rb b/config/initializers/field_error.rb
deleted file mode 100644 (file)
index 34b2242..0000000
+++ /dev/null
@@ -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