about summary refs log tree commit diff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-16 02:08:35 +0200
committerGitHub <noreply@github.com>2019-08-16 02:08:35 +0200
commit6e872c6dabf12fdd2619d4042495e52edd6079bd (patch)
tree65f27488ba2469b50f16160941322e6c593ed7b4 /app/controllers/application_controller.rb
parentb7f5f0ec101d3ba13e7490f6526af6fedd4fa0be (diff)
Fix 422 being returned instead of 404 when POSTing (#11574)
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 0d3913ee0..66569561c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -29,6 +29,8 @@ class ApplicationController < ActionController::Base
   before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?
   before_action :require_functional!, if: :user_signed_in?
 
+  skip_before_action :verify_authenticity_token, only: :raise_not_found
+
   def raise_not_found
     raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"
   end