Sha256: 4fbee26054b6faa55e8361e5487129e5f081b465642fbd608a308ea81027d80b

Contents?: true

Size: 332 Bytes

Versions: 27

Compression:

Stored size: 332 Bytes

Contents

class DocumentMailer < ActionMailer::Base
  default :from => ErpTechSvcs::Config.email_notifications_from

  def email_document(to_email, document)
    file = document.files.first
    attachments[file.data_file_name] = document.files.first.get_contents

    mail(:to => to_email, :subject => 'The Document You Requested')
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
knitkit-2.0.7 app/mailers/document_mailer.rb
knitkit-2.0.6 app/mailers/document_mailer.rb
knitkit-2.0.5 app/mailers/document_mailer.rb
knitkit-2.0.4 app/mailers/document_mailer.rb
knitkit-2.0.3 app/mailers/document_mailer.rb
knitkit-2.0.2 app/mailers/document_mailer.rb
knitkit-2.0.1 app/mailers/document_mailer.rb