diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1c1611f..e683e12 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,10 +3,10 @@ class ApplicationController < ActionController::Base include Pundit - before_action :set_raven_context - protect_from_forgery with: :exception, prepend: true, unless: :json_request? + before_action :set_raven_context + after_action :verify_authorized, except: :index after_action :verify_policy_scoped, only: :index