Module: Corzinus::CountriesHelper
- Defined in:
- app/helpers/corzinus/countries_helper.rb
Instance Method Summary collapse
Instance Method Details
#countries_options(countries) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/corzinus/countries_helper.rb', line 3 def (countries) countries.map do |country| [country.name, country.id, { data: { code: country.code } }] end end |