aboutsummaryrefslogtreecommitdiffstats
path: root/lib/use_spans_for_errors.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/use_spans_for_errors.rb')
-rw-r--r--lib/use_spans_for_errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/use_spans_for_errors.rb b/lib/use_spans_for_errors.rb
index cda05c588..135453f78 100644
--- a/lib/use_spans_for_errors.rb
+++ b/lib/use_spans_for_errors.rb
@@ -8,5 +8,5 @@
#
# See http://dev.rubyonrails.org/ticket/2210
-ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>)}
+ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>).html_safe}