]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/ways_controller.rb
Avoid unnecessary arrays
[rails.git] / app / controllers / api / ways_controller.rb
index b8ce1010f29cc1e3fa046c67b78a1733882892c8..04c823ad2a40e2b5db5835509688baf3c2da8b79 100644 (file)
@@ -27,7 +27,7 @@ module Api
       response.last_modified = way.timestamp
 
       if way.visible
-        @ways = [way]
+        @way = way
 
         # Render the result
         respond_to do |format|
@@ -80,7 +80,7 @@ module Api
           end
         end
 
-        @ways = [way]
+        @way = way
 
         # Render the result
         respond_to do |format|