From 8eb5f093a439fdae44cf1be81700012d420066cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 8 Jun 2023 08:04:23 +0300 Subject: [PATCH] Don't show flash message when opening the root URL while signed out --- app/controllers/dashboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index d6234c6..3f9c14e 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -1,5 +1,5 @@ class DashboardController < ApplicationController - before_action :authenticate_user! + before_action :require_user_signed_in def index @current_section = :services