error procs have to be safe too
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user