5 lines
111 B
Ruby
5 lines
111 B
Ruby
module ApplicationHelper
|
|
def current_user
|
|
@current_user ||= User.find_by_id(session[:user_id])
|
|
end
|
|
end
|