Module: ActionView::Helpers
- Defined in:
- lib/country_select.rb
Defined Under Namespace
Modules: FormOptionsHelper Classes: FormBuilder, InstanceTag
Instance Method Summary collapse
Instance Method Details
#country_name(code) ⇒ Object
545 546 547 548 |
# File 'lib/country_select.rb', line 545 def country_name(code) return "" if code.blank? return COUNTRIES_HASH[code.to_sym] || code end |