Module: Masq::PersonasHelper

Defined in:
app/helpers/masq/personas_helper.rb

Instance Method Summary collapse

Instance Method Details

#countries_for_selectObject

get list of codes and names sorted by country name



6
7
8
# File 'app/helpers/masq/personas_helper.rb', line 6

def countries_for_select
  ::I18nData.countries.map { |pair| pair.reverse }.sort_by(&:first)
end

#languages_for_selectObject

get list of codes and names sorted by language name



11
12
13
# File 'app/helpers/masq/personas_helper.rb', line 11

def languages_for_select
  ::I18nData.languages.map { |pair| pair.reverse }.sort_by(&:first)
end