diff options
author | Michael Koziarski <michael@koziarski.com> | 2009-10-08 12:13:27 +1300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-10-08 12:13:48 +1300 |
commit | c352ec060ceddc43f63863c5d16ae31c3a72e42f (patch) | |
tree | 7382e264e1892e619e89d5d024f3e06323b11d9a /actionpack/lib | |
parent | 572323135f235cc43e8a5bbafa3a634b4ec71ba8 (diff) | |
download | rails-c352ec060ceddc43f63863c5d16ae31c3a72e42f.tar.gz rails-c352ec060ceddc43f63863c5d16ae31c3a72e42f.tar.bz2 rails-c352ec060ceddc43f63863c5d16ae31c3a72e42f.zip |
error procs have to be safe too
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/active_model_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index c9231225e1..7cc1e48572 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -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 |