Sha256: daf424739a50802eef3ff472bbe04b0c1360dc35ef036473bcf3a42268b9b8ad
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require_dependency "chaskiq/application_controller" module Chaskiq class DashboardController < Chaskiq::ApplicationController before_filter :authentication_method 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chaskiq-0.0.3 | app/controllers/chaskiq/dashboard_controller.rb |
chaskiq-0.0.2 | app/controllers/chaskiq/dashboard_controller.rb |