Class: RegionInput
- Inherits:
-
Formtastic::Inputs::SelectInput
- Object
- Formtastic::Inputs::SelectInput
- RegionInput
show all
- Includes:
- ChinaRegionFu::Utils
- Defined in:
- lib/china_region_fu/helpers/formtastic.rb
Instance Method Summary
collapse
#append_html_class_option, #append_html_data_option, #append_html_options, #append_prompt, #china_region_fu_js
Instance Method Details
#collection_from_options ⇒ Object
6
7
8
9
|
# File 'lib/china_region_fu/helpers/formtastic.rb', line 6
def collection_from_options
return [] unless options.key?(:collection)
super
end
|
11
12
13
|
# File 'lib/china_region_fu/helpers/formtastic.rb', line 11
def input_html_options
append_html_options(input_name, input_options.delete(:sub_region), super)
end
|