Sha256: 8e7997d6b623b9287b977d12230e97a7b4164da65d014384f7ca1a604c1cf75a

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

class ReportFinishMailer < ActionMailer::Base
  default from: ""

  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 = 'mingyuan0715@foxmail.com'
    end

    mail to: @email, subject: "Generation Complete"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_data-1.0.2 app/mailers/report_finish_mailer.rb
rails_data-1.0.1 app/mailers/report_finish_mailer.rb
rails_data-1.0.0 app/mailers/report_finish_mailer.rb
rails_data-0.0.1 app/mailers/report_finish_mailer.rb