Module: FormSelectOptions::CountryOptions

Defined in:
lib/i18n_form_helper/form_select_options.rb

Class Method Summary collapse

Class Method Details

.code_to_english_country_nameObject

ISO 3166-1 alpha-2 code



39
40
41
# File 'lib/i18n_form_helper/form_select_options.rb', line 39

def self.code_to_english_country_name
  get_select_options(:code, :name)
end

.english_country_name_to_codeObject



43
44
45
# File 'lib/i18n_form_helper/form_select_options.rb', line 43

def self.english_country_name_to_code
  get_select_options(:name, :code)
end

.english_country_name_to_english_country_nameObject



47
48
49
# File 'lib/i18n_form_helper/form_select_options.rb', line 47

def self.english_country_name_to_english_country_name
  get_select_options(:name, :name)
end