Skip to content

Commit 6e1b63c

Browse files
committed
Dont reset additional classes on the form-group
1 parent 098b0e9 commit 6e1b63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootstrap_form/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def radio_buttons_collection(*args)
121121
end
122122

123123
def form_group(name = nil, options = {}, &block)
124-
options[:class] = "form-group"
124+
options[:class] = ["form-group", options[:class]].compact.join(' ')
125125
options[:class] << " #{error_class}" if has_error?(name)
126126

127127
content_tag(:div, options.except(:label, :help, :label_col, :control_col, :layout)) do

0 commit comments

Comments
 (0)