Skip to content

Commit 1c86466

Browse files
author
Rahoul Baruah
committed
switched off CSRF protection for comments
1 parent a43f070 commit 1c86466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/comments_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class CommentsController < ApplicationController
22
cache_sweeper :code_and_comment_sweeper
3+
skip_before_filter :verify_authenticity_token
34
def create
45
@code = Code.find params[:code_id]
56
@comment = @code.build_comment params[:comment]

0 commit comments

Comments
 (0)