Skip to content

Commit

Permalink
Write comment about super select multiple value correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gazayas committed Aug 8, 2023
1 parent 916a29d commit 67f9ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bullet_train-super_scaffolding/lib/scaffolding/transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,8 @@ def valid_#{collection_name}
field_options[:color_picker_options] = "t('#{child.pluralize.underscore}.fields.#{name}.options')"
end

# When rendering a super_select element we simply use `multiple: true` as an option,
# but all other fields require `html_options {multiple: true}` to work.
# When rendering a super_select element we need to use `html_options: {multiple: true}`,
# but all other fields simply use `multiple: true` to work.
if is_multiple
if type == "super_select"
field_options[:multiple] = "true"
Expand Down

0 comments on commit 67f9ce5

Please sign in to comment.