Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now produces safe_html content for Rails 2.3.8 and higher.

  • Loading branch information...
commit 7fc5cd2a93afb2eba0309465811f0cc3c5660a14 1 parent 2de0c64
Hugo Frappier authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/habtm_checkboxes.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.