X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..84faaaf7950e61b5f87019398aeda0ead8d41c2c:/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