post disapprovals: fix tests and API create action.
* Fix tests. * Fix create action in API (couldn't redirect to show action). * Clean up user initialization.
This commit is contained in:
@@ -5,7 +5,7 @@ class PostDisapprovalsController < ApplicationController
|
||||
|
||||
def create
|
||||
cookies.permanent[:moderated] = Time.now.to_i
|
||||
@post_disapproval = PostDisapproval.create(post_disapproval_params)
|
||||
@post_disapproval = PostDisapproval.create(user: CurrentUser.user, **post_disapproval_params)
|
||||
respond_with(@post_disapproval)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user