X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12..7901811752faea37a9fb0f5f05405a5cfbd63b7e:/app/controllers/node_controller.rb?ds=sidebyside diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 7a841769b..3f3f882ae 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -1,7 +1,7 @@ class NodeController < ApplicationController require 'xml/libxml' - before_filter :authorize, :only => [:create, :update, :destroy] + before_filter :authorize, :only => [:create, :update, :delete] after_filter :compress_output def create @@ -49,9 +49,7 @@ class NodeController < ApplicationController new_node = Node.from_xml(request.raw_post) if new_node and new_node.id == node.id - node.timestamp = Time.now node.user_id = @user.id - node.latitude = new_node.latitude node.longitude = new_node.longitude node.tags = new_node.tags