debian-mirror-gitlab/app/controllers/dashboard/application_controller.rb

17 lines
350 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
class Dashboard::ApplicationController < ApplicationController
2018-03-27 19:54:05 +05:30
include ControllerWithCrossProjectAccessCheck
2019-03-02 22:35:43 +05:30
include RecordUserLastActivity
2018-03-27 19:54:05 +05:30
2015-09-11 14:41:01 +05:30
layout 'dashboard'
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
requires_cross_project_access
2016-06-02 11:05:42 +05:30
private
def projects
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
end
2015-09-11 14:41:01 +05:30
end