X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..3cfffc2258621558e1147ceaf63980a7f6ed414b:/app/controllers/api/relations_controller.rb diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index 2f2cb8503..ba0dd0c6b 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -26,9 +26,7 @@ module Api response.last_modified = @relation.timestamp if @relation.visible # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] else head :gone end @@ -119,9 +117,7 @@ module Api @relations << relation # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] else head :gone end @@ -137,9 +133,7 @@ module Api @relations = Relation.find(ids) # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] end def relations_for_way @@ -166,9 +160,7 @@ module Api end # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] end end end