Skip to content

Commit

Permalink
#34 Changes to not showing required asterisk in `collection_check_b…
Browse files Browse the repository at this point in the history
…oxes` and `collection_radio_buttons` helper
  • Loading branch information
shivam091 committed Jun 3, 2023
1 parent 6d9b86c commit 3d9cc36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rails_bootstrap_form/inputs/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def inputs_collection(attribute, collection, value_method, text_method, bootstra
bootstrap: {
label_text: text_method.respond_to?(:call) ? text_method.call(object) : object.send(text_method),
inline: bootstrap.inline?
}
},
required: false
}.deep_merge!(options)

if (checked = input_options[:checked])
Expand Down

0 comments on commit 3d9cc36

Please sign in to comment.