parent
cd2f24f7ca
commit
8f470ae322
@ -1,2 +1,5 @@
|
||||
module ApplicationHelper
|
||||
def current_user
|
||||
@current_user ||= User.find(session[:user_id]) if session[:user_id]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue