Method: CommentsController#approve

Defined in:
app/controllers/comments_controller.rb

#approveObject



88
89
90
91
92
# File 'app/controllers/comments_controller.rb', line 88

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