From c019c5ba205d46bb51f3415b6c64d6402d6f2b50 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 14 Mar 2022 17:32:54 -0300 Subject: [PATCH] enviar a blazer --- app/controllers/application_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 75f7187..f2c0381 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,9 +2,12 @@ class ApplicationController < ActionController::Base before_action :authenticate_user! + def require_user redirect_to root_path unless current_user end + def index + redirect_to blazer_path end end