error procs have to be safe too

This commit is contained in:
Michael Koziarski 2009-10-08 12:13:27 +13:00
parent 572323135f
commit c352ec060c

@ -6,7 +6,7 @@
module ActionView
class Base
@@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"fieldWithErrors\">#{html_tag}</div>" }
@@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"fieldWithErrors\">#{html_tag}</div>".html_safe! }
cattr_accessor :field_error_proc
end