* VRFS-3396 took out carmen gem; database in production/staging has display names in db

This commit is contained in:
Seth Call 2015-07-28 14:11:28 -05:00
parent 0c58a0c1d3
commit 55ccf89e64
1 changed files with 2 additions and 15 deletions

View File

@ -5,24 +5,11 @@ class MaxMindManager < BaseManager
end
def self.countries
Country.get_all.map do |c|
country = Carmen::Country.coded(c.countrycode)
{
countrycode: c.countrycode,
countryname: country.name
}
end
Country.get_all.map { |c| {countrycode: c.countrycode, countryname: c.countryname} }
end
def self.regions(country)
Region.get_all(country).map do |r|
country = Carmen::Country.coded(r.countrycode)
region = country.subregions.coded(r.region)
{
region: r.region,
name: region.name
}
end
Region.get_all(country).map { |r| { region: r.region, name: r.regionname } }
end
def self.cities(country, region)