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

6 lines
135 B
Ruby
Raw Normal View History

2018-02-13 18:18:20 +01:00
class Champs::RegionChamp < Champs::TextChamp
def self.regions
ApiGeo::API.regions.sort_by { |e| e[:nom] }.pluck(:nom)
end
2018-02-13 18:18:20 +01:00
end