X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12..b598ce68ef3219d1b037c9d40bd111a09d7a794d:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 42219d9b0..ea22206a3 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -1,7 +1,7 @@ class WayController < ApplicationController require 'xml/libxml' - before_filter :authorize, :only => [:create, :update, :destroy] + before_filter :authorize, :only => [:create, :update, :delete] after_filter :compress_output def create @@ -58,7 +58,6 @@ class WayController < ApplicationController way.user_id = @user.id way.tags = new_way.tags way.segs = new_way.segs - way.timestamp = new_way.timestamp way.visible = true if way.save_with_history @@ -86,6 +85,8 @@ class WayController < ApplicationController if way.visible way.user_id = @user.id + way.tags = [] + way.segs = [] way.visible = false if way.save_with_history