demarches-normaliennes/app/models/champs/pays_champ.rb

6 lines
126 B
Ruby
Raw Normal View History

2018-02-13 18:18:20 +01:00
class Champs::PaysChamp < Champs::TextChamp
2018-06-15 14:37:43 +02:00
def self.pays
JSON.parse(Carto::GeoAPI::Driver.pays).pluck("nom")
end
2018-02-13 18:18:20 +01:00
end