dashboard_controller.rb 262 Bytes
Newer Older
1
class Admin::DashboardController < AdminController
randx's avatar
randx committed
2 3 4 5 6 7 8
  def index
    @workers = Resque.workers
    @pending_jobs = Resque.size(:post_receive)
    @projects = Project.order("created_at DESC").limit(10)
    @users = User.order("created_at DESC").limit(10)
  end
end