5 lines
188 B
Ruby
5 lines
188 B
Ruby
class Champs::DepartementChamp < Champs::TextChamp
|
|
def self.departements
|
|
ApiGeo::API.departements.map { |liste| "#{liste[:code]} - #{liste[:nom]}" }.push('99 - Étranger')
|
|
end
|
|
end
|