2021-07-19 21:43:20 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-07-19 13:53:53 +00:00
|
|
|
class ApplicationController < ActionController::Base
|
2021-07-26 18:09:47 +00:00
|
|
|
before_action :authenticate_user!
|
2022-03-14 20:32:54 +00:00
|
|
|
|
2021-07-27 19:13:41 +00:00
|
|
|
def require_user
|
|
|
|
redirect_to root_path unless current_user
|
|
|
|
end
|
2022-03-14 20:32:54 +00:00
|
|
|
|
2021-07-26 18:09:47 +00:00
|
|
|
def index
|
2022-03-14 20:32:54 +00:00
|
|
|
redirect_to blazer_path
|
2021-07-26 18:09:47 +00:00
|
|
|
end
|
2021-07-19 13:53:53 +00:00
|
|
|
end
|