X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ad1ce97983a5d4fb86ccb8ee4cd640a76f95255..0db30c611a99d62381217d86c5a0bd9d104efb42:/app/controllers/api/ways_controller.rb diff --git a/app/controllers/api/ways_controller.rb b/app/controllers/api/ways_controller.rb index 0871384a7..9af087d83 100644 --- a/app/controllers/api/ways_controller.rb +++ b/app/controllers/api/ways_controller.rb @@ -28,9 +28,7 @@ module Api if @way.visible # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] else head :gone end @@ -77,9 +75,7 @@ module Api end # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] else head :gone end @@ -97,9 +93,7 @@ module Api @ways = Way.find(ids) # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] end ## @@ -112,9 +106,7 @@ module Api @ways = Way.where(:id => wayids, :visible => true) # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] end end end