debian-mirror-gitlab/doorkeeper/spec/dummy/app/helpers/application_helper.rb
2020-01-04 02:51:38 +05:30

5 lines
111 B
Ruby

module ApplicationHelper
def current_user
@current_user ||= User.find_by_id(session[:user_id])
end
end