about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-16 02:08:35 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-21 00:26:22 -0600
commit5063f47a8658d388cd11d14d0bed2c8129915c9e (patch)
tree027186e09503d22402921b7fb85d162c1a5a1fd4 /app/controllers
parent961e57f4e067bcacf460986006197ce6938ca244 (diff)
Fix 422 being returned instead of 404 when POSTing (#11574)
Diffstat (limited to 'app/controllers')
-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 add6b52f6..aa08690ff 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -32,6 +32,8 @@ class ApplicationController < ActionController::Base
   before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?
   before_action :check_user_permissions, 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