* VRFS-3396 took out carmen gem; database in production/staging has display names in db
This commit is contained in:
parent
0c58a0c1d3
commit
55ccf89e64
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue