From: Gabriel Ebner Date: Tue, 13 May 2008 12:27:38 +0000 (+0000) Subject: api06: fix syntax errors. X-Git-Tag: live~7563^2~338 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2ff2cdf63d7f9874960c3efea01b4db2a80f9f68?hp=7151fa05e4d4f73956d7f9a7ad2db1f5b956a0c0 api06: fix syntax errors. --- diff --git a/lib/osm.rb b/lib/osm.rb index 8798866e5..38053e12a 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -10,7 +10,9 @@ module OSM # The base class for API Errors. class APIError < RuntimeError - def render_opts { :text => "", :status => :internal_server_error } end + def render_opts + { :text => "", :status => :internal_server_error } + end end # Raised when an API object is not found. @@ -19,12 +21,16 @@ module OSM # Raised when a precondition to an API action fails sanity check. class APIPreconditionFailedError < APIError - def render_opts { :text => "", :status => :precondition_failed } end + def render_opts + { :text => "", :status => :precondition_failed } + end end # Raised when to delete an already-deleted object. class APIAlreadyDeletedError < APIError - def render_opts { :text => "", :status => :gone } end + def render_opts + { :text => "", :status => :gone } + end end # Raised when the provided version is not equal to the latest in the db.