Class: UbigeoInput
- Inherits:
-
Object
- Object
- UbigeoInput
- Includes:
- Formtastic::Inputs::Base
- Defined in:
- app/inputs/ubigeo_input.rb
Instance Attribute Summary collapse
-
#ubigeo ⇒ Object
readonly
Returns the value of attribute ubigeo.
Instance Method Summary collapse
Instance Attribute Details
#ubigeo ⇒ Object (readonly)
Returns the value of attribute ubigeo.
5 6 7 |
# File 'app/inputs/ubigeo_input.rb', line 5 def ubigeo @ubigeo end |
Instance Method Details
#to_html ⇒ Object
7 8 9 10 11 12 |
# File 'app/inputs/ubigeo_input.rb', line 7 def to_html input_wrapping do load_ubigeo department_html << province_html << district_html << hidden_field_html end end |
#wrapper_html_options ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/inputs/ubigeo_input.rb', line 14 def .tap do |opts| opts[:class] = classes opts[:id] ||= wrapper_dom_id opts['data-url'] = [:url] || ubigeo_rails_path end end |