debian-mirror-gitlab/app/controllers/dashboard/application_controller.rb
2019-03-02 22:35:43 +05:30

16 lines
350 B
Ruby

# frozen_string_literal: true
class Dashboard::ApplicationController < ApplicationController
include ControllerWithCrossProjectAccessCheck
include RecordUserLastActivity
layout 'dashboard'
requires_cross_project_access
private
def projects
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
end
end