Class: Chaskiq::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Chaskiq::DashboardController
- Defined in:
- app/controllers/chaskiq/dashboard_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#authentication_method, #get_referrer
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/chaskiq/dashboard_controller.rb', line 7 def show @campaigns_count = Chaskiq::Campaign.count @sends_count = Chaskiq::Metric.deliveries.size @daily_metrics = Chaskiq::Metric.group_by_day(:created_at, range: 2.weeks.ago.midnight..Time.now).count @pie_metrics = Chaskiq::Metric.group(:action) end |