]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/old_controller.rb
Move default_format_xml to api_controller
[rails.git] / app / controllers / api / old_controller.rb
index 92c6d929575241e6ded45b30dd98301a77995e98..b68fde6b55bd5a72e9c101e6d11a5f385d48ea4e 100644 (file)
@@ -18,11 +18,6 @@ module Api
 
     before_action :default_format_xml
 
-    # Set format to xml unless client requires a specific format
-    def default_format_xml
-      request.format = "xml" unless params[:format]
-    end
-
     def history
       # the .where() method used in the lookup_old_element_versions
       # call won't throw an error if no records are found, so we have