]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Small fixes to unit tests where user_id has become changeset_id.
[rails.git] / app / controllers / changeset_controller.rb
index 55e17eee2980be110414f2d75c18f86b0ade815a..8950126b4d86d77fff189a023b71ce85d7a89ed3 100644 (file)
@@ -57,7 +57,7 @@ class ChangesetController < ApplicationController
   
   def close 
     begin
-      if not request.put?
+      unless request.put?
         render :nothing => true, :status => :method_not_allowed
         return
       end
@@ -71,7 +71,7 @@ class ChangesetController < ApplicationController
   end
 
   def upload
-    if not request.put?
+    unless request.put?
       render :nothing => true, :status => :method_not_allowed
       return
     end
@@ -95,14 +95,12 @@ class ChangesetController < ApplicationController
 
     Changeset.transaction do
       while p.read == 1
-       puts p.name
        break if p.node_type == 15 # end element
        next unless p.node_type == 1 # element
 
        case p.name
        when 'create':
          while p.read == 1
-           puts "#{p.name} #{p.node_type}"
            break if p.node_type == 15 # end element
            next unless p.node_type == 1 # element