Skip to content

Commit

Permalink
Disable csrf for #not_found action.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Dec 25, 2014
1 parent 2aa8cf2 commit ea7ee5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/errors_controller.rb
@@ -1,4 +1,6 @@
class ErrorsController < ApplicationController
skip_before_action :verify_authenticity_token

def not_found
head :not_found
end
Expand Down

0 comments on commit ea7ee5c

Please sign in to comment.