Skip to content

Commit

Permalink
Use current_user instead of directly accessing session[:userinfo]
Browse files Browse the repository at this point in the history
  • Loading branch information
onk committed May 3, 2024
1 parent 149b94a commit 1bb957b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def current_user
helper_method :current_user

def logged_in?
!!session[:userinfo]
!!current_user
end
helper_method :logged_in?

Expand Down

0 comments on commit 1bb957b

Please sign in to comment.