]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/redactions_controller.rb
Merge branch 'master' into moderation
[rails.git] / app / controllers / redactions_controller.rb
index 129318191a65c4566ebf5f3a472c4893fc065121..f15060d5b596d2ca62be7fc0c0334e7a25e706a3 100644 (file)
@@ -19,7 +19,7 @@ class RedactionsController < ApplicationController
 
   def create
     @redaction = Redaction.new
-    @redaction.user = @user
+    @redaction.user = current_user
     @redaction.title = params[:redaction][:title]
     @redaction.description = params[:redaction][:description]
     # note that the description format will default to 'markdown'