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-23 15:35:03 +02:00
|
|
|
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
|