Class: RailsObservatory::JobsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsObservatory::JobsController
- Defined in:
- app/controllers/rails_observatory/jobs_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/rails_observatory/jobs_controller.rb', line 8 def index JobTrace.ensure_index @recent_jobs = JobTrace.all.take(10) end |
#set_time_range ⇒ Object
19 20 21 22 23 |
# File 'app/controllers/rails_observatory/jobs_controller.rb', line 19 def set_time_range TimeSeries.with_slice(duration.seconds.ago..) do yield end end |