Permalink
Browse files

error procs have to be safe too

  • Loading branch information...
1 parent 5723231 commit c352ec060ceddc43f63863c5d16ae31c3a72e42f @NZKoz NZKoz committed Oct 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/active_model_helper.rb
@@ -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

0 comments on commit c352ec0

Please sign in to comment.