diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-03 12:10:19 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-03 12:10:19 +1100 |
commit | 8461a4d704ab5d6321d626c592fc39a708605caf (patch) | |
tree | 5d8860067a56065adf3359653cae6a14da46e8e9 /lib/use_spans_for_errors.rb | |
parent | 3f17ab250d0ea54117c29e02f8e9d4a2acf81099 (diff) |
Make use_spans_for_errors monkey patch output html safe string
Diffstat (limited to 'lib/use_spans_for_errors.rb')
-rw-r--r-- | lib/use_spans_for_errors.rb | 2 |
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} |