module ISO3166::CountryClassMethods
def all_names_with_codes(locale = 'en')
def all_names_with_codes(locale = 'en') Country.all.map do |c| lc = c.translation(locale) || c.iso_short_name [lc.respond_to?('html_safe') ? lc.html_safe : lc, c.alpha2] end.sort end