mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
error procs have to be safe too
This commit is contained in:
@@ -6,7 +6,7 @@ require 'active_support/core_ext/kernel/reporting'
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user