Sha256: 76c60332277b67d30ba4239a3796fcbbd0f7f1a0ab9526d27455656ddf11854c
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 Bytes
Contents
ActionMailer::Base.view_paths = File.expand_path('../../views/', __FILE__) class ReportMailer < ActionMailer::Base def daily(to) @title = Reparty::Email.title @reports = Reparty::Email.reports @reports.each {|r| r.attach(attachments)} attachments.inline['spacer.gif'] = File.read(Reparty.root + 'app/assets/images/spacer.gif') mail( from: Reparty::Email.from, to: to, subject: Reparty::Email.subject ) end end
Version data entries
5 entries across 5 versions & 1 rubygems