Rationalise API error classes by getting of the render_opts method which
authorTom Hughes <tom@compton.nu>
Thu, 21 May 2009 19:28:39 +0000 (19:28 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 21 May 2009 19:28:39 +0000 (19:28 +0000)
commit4a4d89138c440c7f68369fac12447002cf0cadd5
tree439c81d75ecee1657a976b15ec537e3bae7e35bd
parent33157534e1f2fc538a478c955fe1fd86dbbbec52
Rationalise API error classes by getting of the render_opts method which
was never used except to extract the data it contained. Instead each class
now has a status method that returns the HTTP status code to use and a
to_s method to return a textual description of the error.
app/controllers/application.rb
lib/osm.rb
test/functional/changeset_controller_test.rb
test/functional/node_controller_test.rb
test/functional/way_controller_test.rb