From 83335871b4e3ba33c2b2abd0a6eb928a5d91cf40 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sat, 15 Apr 2023 23:52:40 +0200 Subject: [PATCH] Add sign-out redirection --- app/controllers/application_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6b4dcfa..a9c4fd7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,9 @@ class ApplicationController < ActionController::Base before_action :authenticate_user! + + protected + + def after_sign_out_path_for(scope) + new_user_session_path + end end