Skip to content

Commit

Permalink
Merge pull request #48 from lomography/master
Browse files Browse the repository at this point in the history
Use namespaced countries gem in order to not pollute namespace.
  • Loading branch information
stefanpenner committed Feb 14, 2014
2 parents 4f31104 + 51ac2df commit a67ae46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/country_select/countries.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
require 'countries'
require 'iso3166'

module CountrySelect
def self.use_iso_codes
Expand All @@ -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
Expand Down

0 comments on commit a67ae46

Please sign in to comment.