]> git.openstreetmap.org Git - rails.git/commit
Replace the country table with a static XML countries file
authorTom Hughes <tom@compton.nu>
Fri, 17 Jan 2014 19:25:58 +0000 (19:25 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 17 Jan 2014 19:25:58 +0000 (19:25 +0000)
commit42b329ed82c7899b970e1f0fd8d6d29fd625f7d5
treed74ab38ce21045b95a393bf72df6402c3c1e3e59
parent933b0913304fdd581c7cb3f1ec30450d6e04c63a
Replace the country table with a static XML countries file

Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.
app/models/country.rb [deleted file]
config/countries.xml [new file with mode: 0644]
db/migrate/20140117185510_drop_countries.rb [new file with mode: 0644]
db/structure.sql
lib/country.rb [new file with mode: 0644]
test/unit/country_test.rb [deleted file]