Class: Spree::ReportMailer
- Inherits:
-
BaseMailer
- Object
- ActionMailer::Base
- BaseMailer
- Spree::ReportMailer
- Defined in:
- app/mailers/spree/report_mailer.rb
Instance Method Summary collapse
Methods inherited from BaseMailer
#from_address, #frontend_available?, #mail, #money, #reply_to_address, #set_email_locale, #with_store_locale
Instance Method Details
#report_done(report) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/mailers/spree/report_mailer.rb', line 3 def report_done(report) @report = report with_store_locale(@report.store) do mail( to: @report.user.email, subject: Spree.t('report_mailer.report_done.subject', report_name: @report.human_name).to_s ) end end |