Sha256: 50730f03483c524c11415f7a422128e064b6c6294ea4f1910a6205bd21dc03bd

Contents?: true

Size: 295 Bytes

Versions: 31

Compression:

Stored size: 295 Bytes

Contents

class ReportMailer < ActionMailer::Base
  default from: QueryReport.config.email_from

  def send_report(user, to, subject, message, file_name, attachment)
    @user = user
    @message = message
    attachments["#{file_name}.pdf"] = attachment
    mail(:to => to, :subject => subject)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
query_report-1.2.1 app/mailers/report_mailer.rb
query_report-1.2.0 app/mailers/report_mailer.rb
query_report-1.1.6 app/mailers/report_mailer.rb
query_report-1.1.5 app/mailers/report_mailer.rb
query_report-1.1.4 app/mailers/report_mailer.rb
query_report-1.1.3 app/mailers/report_mailer.rb
query_report-1.1.2 app/mailers/report_mailer.rb
query_report-1.1.1 app/mailers/report_mailer.rb
query_report-1.1.0 app/mailers/report_mailer.rb
query_report-1.0.26 app/mailers/report_mailer.rb
query_report-1.0.25 app/mailers/report_mailer.rb
query_report-1.0.24 app/mailers/report_mailer.rb
query_report-1.0.23 app/mailers/report_mailer.rb
query_report-1.0.22 app/mailers/report_mailer.rb
query_report-1.0.21 app/mailers/report_mailer.rb
query_report-1.0.20 app/mailers/report_mailer.rb
query_report-1.0.19 app/mailers/report_mailer.rb
query_report-1.0.18 app/mailers/report_mailer.rb
query_report-1.0.17 app/mailers/report_mailer.rb
query_report-1.0.16 app/mailers/report_mailer.rb