9 lines
189 B
Ruby
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
|