blob: 827dd0cf7cd82052d378fce885ed18791d9b620c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Admin::DashboardController < AdminController
def index
@projects = Project.order("created_at DESC").limit(10)
@users = User.order("created_at DESC").limit(10)
@resque_accessible = true
@workers = Resque.workers
@pending_jobs = Resque.size(:post_receive)
rescue Redis::InheritedError
@resque_accessible = false
end
end
|