From c3eb705125ee29936ed628c033a5ba4b8aa37eaa Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 12 Dec 2018 06:54:38 +0500 Subject: [PATCH] Reorder code --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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