Sha256: 3ef4bdecdf977b65eb77ea1b45d05858b2bf3a95352c195187d76d100ec0229e

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

class MeterCat::MeterMailer <  ActionMailer::Base
  helper MeterCat::MetersHelper

  def report
    config = MeterCat.config
    @range = ( Date.yesterday - config.mail_days ) .. Date.yesterday
    @meters = MeterCat::Meter.to_h( @range, config.mail_names )

    mail( :to => config.to, :from => config.from, :subject => config.subject )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meter_cat-0.0.7 app/mailers/meter_cat/meter_mailer.rb
meter_cat-0.0.6 app/mailers/meter_cat/meter_mailer.rb