Sha256: 4bb923600ac80946e91247c87550ddf8c5885779e08cbbc799271dcd40c1be60
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
class MailEngine::DashboardController < MailEngine::ApplicationController def index @pie_chart_columns = ["bounces", "unique_opens", "spamreports", "blocks", "unopened"] @data_of_today = MailEngine::Sendgrid::RestApi.stats || {} # unopened data needs you calculate by yourself. @data_of_today.merge!("unopened" => (@data_of_today["delivered"].to_i - @data_of_today["unique_opens"].to_i)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail_engine-0.1.15 | app/controllers/mail_engine/dashboard_controller.rb |