]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/old_controller.rb
Replace respond_to with render xml format
[rails.git] / app / controllers / api / old_controller.rb
index 49fdcf1a3b4c13f13f8427e5336620753b95ed4d..984534b065178e825e997eda86fe63d7f6ca253c 100644 (file)
@@ -30,9 +30,7 @@ module Api
                end
 
       # Render the result
                end
 
       # Render the result
-      respond_to do |format|
-        format.xml
-      end
+      render formats: [:xml]
     end
 
     def version
     end
 
     def version
@@ -43,9 +41,7 @@ module Api
         response.last_modified = @old_element.timestamp
 
         # Render the result
         response.last_modified = @old_element.timestamp
 
         # Render the result
-        respond_to do |format|
-          format.xml
-        end
+        render formats: [:xml]
       end
     end
 
       end
     end