demarches-normaliennes/app/models/champs/pays_champ.rb
clemkeirua 4373cb22cb Revert "Merge pull request #4552 from tchak/champ-communes"
This reverts commit 4cec26f73a, reversing
changes made to 0ef25ef36c.
2020-01-13 16:26:27 +01:00

9 lines
189 B
Ruby

class Champs::PaysChamp < Champs::TextChamp
def self.pays
ApiGeo::API.pays.pluck(:nom)
end
def self.disabled_options
pays.filter { |v| (v =~ /^--.*--$/).present? }
end
end