Permalink
Browse files

Avoid duplicate calls to form_group_wrapping

  • Loading branch information...
1 parent 3140471 commit 6485d0079bc335e3e3fd63a173b8e52c704f2af2 @sodabrew sodabrew committed Apr 7, 2014
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/formtastic-bootstrap/inputs/check_boxes_input.rb
@@ -8,12 +8,10 @@ class CheckBoxesInput < Formtastic::Inputs::CheckBoxesInput
def to_html
bootstrap_wrapping do
- form_group_wrapping do
- hidden_field_for_all << # Might need to remove this guy.
- collection.map { |choice|
- choice_html(choice)
- }.join("\n").html_safe
- end
+ hidden_field_for_all << # Might need to remove this guy.
+ collection.map { |choice|
+ choice_html(choice)
+ }.join("\n").html_safe
end
end

0 comments on commit 6485d00

Please sign in to comment.