Class: RoundhouseUi::RecurringController

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

Overview

Periodic work, whichever scheduler defines it. Read-only: the schedule belongs in the code that declares it, and a UI that silently changes a production schedule is a different risk conversation. See #62.

Constant Summary

Constants inherited from ApplicationController

ApplicationController::AUDIT_VERBS

Instance Method Summary collapse

Methods inherited from ApplicationController

allow_in_read_only, guard_in_read_only, #redirect_to, requires_capability

Instance Method Details

#indexObject



6
7
8
9
10
# File 'app/controllers/roundhouse_ui/recurring_controller.rb', line 6

def index
  @tasks = Recurring.tasks
  @sources = @tasks.map(&:source).uniq
  @overdue = @tasks.count { |t| t.status == :overdue }
end