debian-mirror-gitlab/app/controllers/admin/dashboard_controller.rb
2018-10-15 14:42:47 +05:30

9 lines
281 B
Ruby

class Admin::DashboardController < Admin::ApplicationController
include CountHelper
def index
@projects = Project.order_id_desc.without_deleted.with_route.limit(10)
@users = User.order_id_desc.limit(10)
@groups = Group.order_id_desc.with_route.limit(10)
end
end