]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/ways_controller.rb
Merge remote-tracking branch 'upstream/pull/4632'
[rails.git] / app / controllers / api / ways_controller.rb
index 5e72cfe209db66c29e5666bc2af744722acc40b6..f8254d8027bacbd43fe8e0c6c641c78b8b04e338 100644 (file)
@@ -1,7 +1,5 @@
 module Api
   class WaysController < ApiController
-    require "xml/libxml"
-
     before_action :check_api_writable, :only => [:create, :update, :delete]
     before_action :check_api_readable, :except => [:create, :update, :delete]
     before_action :authorize, :only => [:create, :update, :delete]
@@ -47,8 +45,6 @@ module Api
     end
 
     def create
-      assert_method :put
-
       way = Way.from_xml(request.raw_post, :create => true)
 
       # Assume that Way.from_xml has thrown an exception if there is an error parsing the xml