Permalink
Browse files

Now produces safe_html content for Rails 2.3.8 and higher.

  • Loading branch information...
1 parent 2de0c64 commit 7fc5cd2a93afb2eba0309465811f0cc3c5660a14 Hugo Frappier committed with Jul 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/habtm_checkboxes.rb
@@ -20,7 +20,7 @@ def habtm_checkboxes(obj, column, assignment_objects, assignment_object_display_
cbx_id = "#{obj_to_s}_#{column}_#{assignment_obj.id}"
html += check_box_tag field_name, assignment_obj.id, obj.send(column).include?(assignment_obj.id), :id => cbx_id
html += label_tag cbx_id, h(assignment_obj.send(assignment_object_display_column))
- html += "<br/>"
+ html += content_tag(:br)
end
html
end

0 comments on commit 7fc5cd2

Please sign in to comment.