Class: SimpleForm::Inputs::CollectionRadioButtonsInput
- Inherits:
-
CollectionInput
- Object
- Base
- CollectionInput
- SimpleForm::Inputs::CollectionRadioButtonsInput
- Defined in:
- lib/simple_form/inputs/collection_radio_buttons_input.rb
Direct Known Subclasses
Constant Summary
Constants inherited from CollectionInput
SimpleForm::Inputs::CollectionInput::BASIC_OBJECT_CLASSES
Instance Attribute Summary
Attributes inherited from Base
#attribute_name, #column, #html_classes, #input_html_classes, #input_html_options, #input_type, #options, #reflection
Instance Method Summary collapse
Methods inherited from CollectionInput
Methods inherited from Base
#additional_classes, disable, enable, #initialize, #input_class
Methods included from Components::Readonly
Methods included from Components::Placeholders
#placeholder, #placeholder_text
Methods included from Components::Pattern
Methods included from Components::MinMax
Methods included from Components::Minlength
Methods included from Components::Maxlength
Methods included from Components::LabelInput
Methods included from Components::HTML5
#has_required?, #html5, #html5?, #initialize, #input_html_required_option
Methods included from Components::Hints
Methods included from Components::Errors
#error, #full_error, #has_errors?, #has_value?, #valid?
Methods included from Helpers::Validators
Constructor Details
This class inherits a constructor from SimpleForm::Inputs::Base
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/simple_form/inputs/collection_radio_buttons_input.rb', line 5 def input( = nil) label_method, value_method = detect_collection_methods = (, ) @builder.send(:"collection_#{input_type}", attribute_name, collection, value_method, label_method, , , &collection_block_for_nested_boolean_style ) end |
#input_options ⇒ Object
17 18 19 20 21 |
# File 'lib/simple_form/inputs/collection_radio_buttons_input.rb', line 17 def = super () end |