Method: Primer::Forms::CheckBox#nested_form_arguments
- Defined in:
- app/lib/primer/forms/check_box.rb
permalink #nested_form_arguments ⇒ Object
[View source]
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/lib/primer/forms/check_box.rb', line 20 def nested_form_arguments return @nested_form_arguments if defined?(@nested_form_arguments) @nested_form_arguments = { hidden: @input.hidden?, **@input.nested_form_arguments } @nested_form_arguments[:class] = class_names( @nested_form_arguments[:class], @nested_form_arguments.delete(:classes), "ml-4" ) @nested_form_arguments end |