diff --git a/app/controllers/api/v2/restful_controller.rb b/app/controllers/api/v2/restful_controller.rb index e9183385..4d122bc8 100644 --- a/app/controllers/api/v2/restful_controller.rb +++ b/app/controllers/api/v2/restful_controller.rb @@ -5,7 +5,7 @@ module Api include Pundit include PunditExtra - protect_from_forgery, with: :exception + protect_from_forgery with: :exception snorlax_used_rest! before_action :load_resource, only: [:show, :update, :destroy]