From: mmd-osm Date: Fri, 28 Jun 2019 20:05:38 +0000 (+0200) Subject: Rubocop X-Git-Tag: live~3103^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/84faaaf7950e61b5f87019398aeda0ead8d41c2c Rubocop --- diff --git a/app/controllers/api/map_controller.rb b/app/controllers/api/map_controller.rb index c783759bc..b0998f7eb 100644 --- a/app/controllers/api/map_controller.rb +++ b/app/controllers/api/map_controller.rb @@ -90,7 +90,7 @@ module Api response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" # Render the result - render formats: [:xml] + render :formats => [:xml] end end end diff --git a/app/controllers/api/nodes_controller.rb b/app/controllers/api/nodes_controller.rb index 8a8068e7e..2962ce070 100644 --- a/app/controllers/api/nodes_controller.rb +++ b/app/controllers/api/nodes_controller.rb @@ -32,7 +32,7 @@ module Api if @node.visible # Render the result - render formats: [:xml] + render :formats => [:xml] else head :gone end @@ -73,7 +73,7 @@ module Api @nodes = Node.find(ids) # Render the result - render formats: [:xml] + render :formats => [:xml] end end end diff --git a/app/controllers/api/old_controller.rb b/app/controllers/api/old_controller.rb index 984534b06..862d14716 100644 --- a/app/controllers/api/old_controller.rb +++ b/app/controllers/api/old_controller.rb @@ -30,7 +30,7 @@ module Api end # Render the result - render formats: [:xml] + render :formats => [:xml] end def version @@ -41,7 +41,7 @@ module Api response.last_modified = @old_element.timestamp # Render the result - render formats: [:xml] + render :formats => [:xml] end end diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index fbc958098..ba0dd0c6b 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -26,7 +26,7 @@ module Api response.last_modified = @relation.timestamp if @relation.visible # Render the result - render formats: [:xml] + render :formats => [:xml] else head :gone end @@ -117,7 +117,7 @@ module Api @relations << relation # Render the result - render formats: [:xml] + render :formats => [:xml] else head :gone end @@ -133,7 +133,7 @@ module Api @relations = Relation.find(ids) # Render the result - render formats: [:xml] + render :formats => [:xml] end def relations_for_way @@ -160,7 +160,7 @@ module Api end # Render the result - render formats: [:xml] + render :formats => [:xml] end end end diff --git a/app/controllers/api/ways_controller.rb b/app/controllers/api/ways_controller.rb index e5841e2ad..9af087d83 100644 --- a/app/controllers/api/ways_controller.rb +++ b/app/controllers/api/ways_controller.rb @@ -28,7 +28,7 @@ module Api if @way.visible # Render the result - render formats: [:xml] + render :formats => [:xml] else head :gone end @@ -75,7 +75,7 @@ module Api end # Render the result - render formats: [:xml] + render :formats => [:xml] else head :gone end @@ -93,7 +93,7 @@ module Api @ways = Way.find(ids) # Render the result - render formats: [:xml] + render :formats => [:xml] end ## @@ -106,7 +106,7 @@ module Api @ways = Way.where(:id => wayids, :visible => true) # Render the result - render formats: [:xml] + render :formats => [:xml] end end end