2018-02-13 18:18:20 +01:00
|
|
|
class Champs::RegionChamp < Champs::TextChamp
|
2018-06-15 14:35:49 +02:00
|
|
|
def self.regions
|
2018-10-15 16:30:27 +02:00
|
|
|
JSON.parse(ApiGeo::Driver.regions).sort_by { |e| e['nom'] }.pluck("nom")
|
2018-06-15 14:35:49 +02:00
|
|
|
end
|
2018-02-13 18:18:20 +01:00
|
|
|
end
|