Skip to content

Commit

Permalink
refactor and improve user being logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Oct 2, 2023
1 parent 4ae8487 commit 2aa5202
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
before_action :set_global_user

private

def set_global_user
@user = current_user if user_signed_in?
end
end

0 comments on commit 2aa5202

Please sign in to comment.