From 9dbfecbf5672724b00827e28926177027b01d226 Mon Sep 17 00:00:00 2001 From: Bruno Perles Date: Thu, 25 Jan 2024 09:11:58 +0100 Subject: [PATCH] Update Pundit inclusion logic (Deprecation) --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 34c1ae63..b9916b46 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,7 +3,7 @@ class ApplicationController < ActionController::API render text: exception, status: :internal_server_error end - include Pundit if ENV['ENABLE_AUTHENTICATION'].present? + include Pundit::Authorization if ENV['ENABLE_AUTHENTICATION'].present? if ENV['ENABLE_AUTHENTICATION'].present? before_action :doorkeeper_authorize!, except: %i[info check_uuid password_forgotten change_password]