Class: SimpleForm::Inputs::MappingInput
- Extended by:
- MapType
- Defined in:
- lib/simple_form/inputs/mapping_input.rb
Overview
Uses MapType to handle basic input types.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods included from MapType
Methods inherited from Base
#initialize, #input_html_options, #input_options, #render
Methods included from SimpleForm::I18nCache
#get_i18n_cache, #i18n_cache, #reset_i18n_cache
Methods included from Components::Wrapper
#wrap, #wrapper_html_options, #wrapper_tag
Methods included from Components::Labels
included, #label, #label_html_options, #label_target, #label_text
Methods included from Components::Hints
#hint, #hint_html_options, #hint_tag, #hint_text
Methods included from Components::Errors
#error, #error_html_options, #error_tag, #error_text
Constructor Details
This class inherits a constructor from SimpleForm::Inputs::Base
Instance Method Details
#input ⇒ Object
12 13 14 |
# File 'lib/simple_form/inputs/mapping_input.rb', line 12 def input @builder.send(input_method, attribute_name, ) end |
#input_method ⇒ Object
16 17 18 19 20 |
# File 'lib/simple_form/inputs/mapping_input.rb', line 16 def input_method method = self.class.mappings[input_type] raise "Could not find method for #{input_type.inspect}" unless method method end |