Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Avoid duplicate calls to form_group_wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Apr 7, 2014
1 parent 3140471 commit 6485d00
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/formtastic-bootstrap/inputs/check_boxes_input.rb
Expand Up @@ -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

Expand Down

0 comments on commit 6485d00

Please sign in to comment.