Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ViditChitkara committed Jul 10, 2019
1 parent 5d10485 commit 25cbe7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def current_user
user_id = session[:user_id]
if user_id
begin
@user = User.find(user_id)
cookies.signed["user_id"] = @current_user.id
u = User.find(user_id)
cookies.signed["user_id"] = u.id
@user = u
rescue StandardError
@user = nil
end
Expand Down

0 comments on commit 25cbe7a

Please sign in to comment.