Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/country_select.rb
Instance Method Summary collapse
Instance Method Details
#to_country_select_tag(priority_countries, options, html_options) ⇒ Object
131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/country_select.rb', line 131 def to_country_select_tag(priority_countries, , ) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ( (value, priority_countries, [:country_code].presence || 'FULL' ), , value ), ) end |