]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
split_node_tags: Implement key constraints.
[rails.git] / app / controllers / way_controller.rb
index 4b52ad3f04829f575e7ecf37c132507ca4f0ba28..a7f74e50c7e66e465581c3deb575a582df5670b2 100644 (file)
@@ -15,6 +15,7 @@ class WayController < ApplicationController
         if !way.preconditions_ok?
           render :text => "", :status => :precondition_failed
         else
+         way.version = 0
           way.user_id = @user.id
           way.save_with_history!
 
@@ -77,7 +78,6 @@ class WayController < ApplicationController
 
       # if we get here, all is fine, otherwise something will catch below.  
       render :nothing => true
-      return
     rescue OSM::APIAlreadyDeletedError
       render :text => "", :status => :gone
     rescue OSM::APIPreconditionFailedError