Removes the user param from the client and forces it to be current_user in the controller
This commit is contained in:
@@ -4,6 +4,7 @@ class AnnotationsController < ApplicationController
|
||||
|
||||
def create
|
||||
@annotation = Annotation.new(annotation_params)
|
||||
@annotation.user = current_user
|
||||
if @annotation.save
|
||||
render json: @annotation.to_json
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user