gitlabhq/app/controllers/dashboard_controller.rb
2011-10-31 22:57:16 +02:00

7 lines
214 B
Ruby

class DashboardController < ApplicationController
def index
@projects = current_user.projects.all
@active_projects = @projects.select(&:last_activity_date).sort_by(&:last_activity_date).reverse
end
end