Make the role in relations optional, with a test to make sure it is. Also start movin...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 24 Nov 2008 18:55:24 +0000 (18:55 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 24 Nov 2008 18:55:24 +0000 (18:55 +0000)
commit0ff1214f86ac1347bb257abfda70581cc78903dd
tree0aedd58fd232442acabf07fae9c2c770274bd833
parent152cb13a02dfcb2966b8a9b29382f84a99a23a69
Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions.
app/controllers/relation_controller.rb
app/models/relation.rb
config/environment.rb
config/initializers/libxml.rb
lib/osm.rb
test/functional/relation_controller_test.rb