5 lines
159 B
Ruby
5 lines
159 B
Ruby
class Champs::RegionChamp < Champs::TextChamp
|
|
def self.regions
|
|
JSON.parse(Carto::GeoAPI::Driver.regions).sort_by { |e| e['nom'] }.pluck("nom")
|
|
end
|
|
end
|