Class: RadioCollectionInput

Inherits:
SimpleForm::Inputs::CollectionRadioButtonsInput
  • Object
show all
Defined in:
app/inputs/radio_collection_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/inputs/radio_collection_input.rb', line 3

def input(wrapper_options)
  label_method, value_method = detect_collection_methods

  @builder.send("collection_radio_buttons",
    attribute_name, collection, value_method, label_method,
    input_options, input_html_options, &collection_block_for_nested_boolean_style
  )
end