mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
fixed an error when deleting logged in user
This commit is contained in:
@@ -3,6 +3,6 @@ class ApplicationController < ActionController::Base
|
||||
def current_user
|
||||
return nil if session[:user_id].nil?
|
||||
|
||||
User.find session[:user_id]
|
||||
User.find_by_id session[:user_id]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user