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

10 lines
204 B
Ruby
Raw Normal View History

2015-09-11 14:41:01 +05:30
class Dashboard::ApplicationController < ApplicationController
layout 'dashboard'
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