Skip to content

Commit

Permalink
set multiple attribute for grouped selects also
Browse files Browse the repository at this point in the history
  • Loading branch information
ollym committed Dec 17, 2018
1 parent 4006c86 commit 0c59e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_form/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def build_association_attribute(reflection, association, options)
when :has_one
raise ArgumentError, ":has_one associations are not supported by f.association"
else
if options[:as] == :select
if options[:as] == :select || options[:as] == :grouped_select
html_options = options[:input_html] ||= {}
html_options[:multiple] = true unless html_options.key?(:multiple)
end
Expand Down

0 comments on commit 0c59e15

Please sign in to comment.