Class: ReportFinishMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ReportFinishMailer
- Defined in:
- app/mailers/report_finish_mailer.rb
Instance Method Summary collapse
Instance Method Details
#finish_notify(id) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/mailers/report_finish_mailer.rb', line 4 def finish_notify(id) @report_list = ReportList.find(id) @message = @report_list.notice_body if Rails.env == 'production' @email = @report_list.notice_email else @email = '[email protected]' end mail to: @email, subject: "Generation Complete" end |