X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e1f79d84adc413afa2a1a8d8d06fda9fa5151d49..34e3e51456774127d43408b7ab65c24f41373f62:/app/controllers/redactions_controller.rb diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index d0f902717..6dbe53937 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -1,6 +1,6 @@ class RedactionsController < ApplicationController layout 'site' - + before_filter :authorize_web before_filter :set_locale before_filter :require_user, :only => [:new, :create, :edit, :update, :destroy] @@ -16,7 +16,7 @@ class RedactionsController < ApplicationController def new @redaction = Redaction.new end - + def create @redaction = Redaction.new @redaction.user = @user @@ -31,13 +31,13 @@ class RedactionsController < ApplicationController render :action => 'new' end end - + def show end - + def edit end - + def update # note - don't update the user ID @redaction.title = params[:redaction][:title] @@ -50,7 +50,7 @@ class RedactionsController < ApplicationController render :action => 'edit' end end - + def destroy unless @redaction.old_nodes.empty? and @redaction.old_ways.empty? and