Class: ChinaRegionFu::SimpleForm::RegionInput
- Inherits:
-
SimpleForm::Inputs::CollectionSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- ChinaRegionFu::SimpleForm::RegionInput
show all
- Includes:
- Utils
- Defined in:
- lib/china_region_fu/helpers/simple_form.rb
Instance Method Summary
collapse
Methods included from Utils
#append_html_class_option, #append_html_data_option, #append_html_options, #append_prompt, #china_region_fu_js
Instance Method Details
#collection ⇒ Object
11
12
13
|
# File 'lib/china_region_fu/helpers/simple_form.rb', line 11
def collection
@collection ||= options.delete(:collection) || []
end
|
7
8
9
|
# File 'lib/china_region_fu/helpers/simple_form.rb', line 7
def input_html_options
append_html_options(attribute_name, sub_region, super)
end
|