Method: CommentsController#reject

Defined in:
app/controllers/comments_controller.rb

#rejectObject



94
95
96
97
98
# File 'app/controllers/comments_controller.rb', line 94

def reject
  @comment = Comment.find(params[:id])
  @comment.mark_as_spam!
  redirect_to post_path(@comment.post, :anchor => dom_id(@comment))
end