2018-02-13 18:18:20 +01:00
|
|
|
class Champs::DepartementChamp < Champs::TextChamp
|
2018-06-15 14:36:48 +02:00
|
|
|
def self.departements
|
2018-10-15 21:01:37 +02:00
|
|
|
JSON.parse(ApiGeo::API.departements).map { |liste| "#{liste['code']} - #{liste['nom']}" }.push('99 - Étranger')
|
2018-06-15 14:36:48 +02:00
|
|
|
end
|
2018-02-13 18:18:20 +01:00
|
|
|
end
|