class Champs::DepartementChamp < Champs::TextChamp def self.departements JSON.parse(Carto::GeoAPI::Driver.departements).map { |liste| "#{liste['code']} - #{liste['nom']}" }.push('99 - Étranger') end end