]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/redactions_controller.rb
Fixed fixture after adding link from redaction to user
[rails.git] / app / controllers / redactions_controller.rb
index 201f1883f1abe8e609e7b4ace7b48989b314206b..a70ada3ecddf7ba3c5693c4f475957b15571cb0c 100644 (file)
@@ -19,7 +19,7 @@ class RedactionsController < ApplicationController
      
   def create
     @redaction = Redaction.new
-    @redaction.user_id = @user.id
+    @redaction.user = @user
     @redaction.title = params[:redaction][:title]
     @redaction.description = params[:redaction][:description]
     # didn't see this come in from the form - maybe i'm doing something