Class: DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject


2
3
4
5
6
7
8
9
10
# File 'app/controllers/dashboard_controller.rb', line 2

def show
  @history = History.new(params[:period])

  recent_jobs = Job.recents.limit(10)

  @scheduled_jobs  = recent_jobs.scheduled
  @processing_jobs = recent_jobs.processing
  @failed_jobs     = recent_jobs.failed
end