From 51ac2df7a84b81a3c60c99ff5dc8585ef3f9ae51 Mon Sep 17 00:00:00 2001 From: Michael Emhofer Date: Fri, 14 Feb 2014 16:09:12 +0100 Subject: [PATCH] Use namespaced countries gem in order to not pollute namespace. --- lib/country_select/countries.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/country_select/countries.rb b/lib/country_select/countries.rb index 992092b..c1e049f 100644 --- a/lib/country_select/countries.rb +++ b/lib/country_select/countries.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -require 'countries' +require 'iso3166' module CountrySelect def self.use_iso_codes @@ -21,7 +21,7 @@ def self.countries(with_locale=nil) ISO3166::Country.all.inject({}) do |hash,country_pair| default_name = country_pair.first code = country_pair.last - country = Country.new(code) + country = ISO3166::Country.new(code) localized_name = country.translations[with_locale.to_s] # Codes should not be downcased, but they were previous to 1.3