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-3.0.0 app/mailers/document_mailer.rb
knitkit-2.1.15 app/mailers/document_mailer.rb
knitkit-2.1.14 app/mailers/document_mailer.rb
knitkit-2.1.13 app/mailers/document_mailer.rb
knitkit-2.1.12 app/mailers/document_mailer.rb
knitkit-2.1.11 app/mailers/document_mailer.rb
knitkit-2.1.10 app/mailers/document_mailer.rb
knitkit-2.1.9 app/mailers/document_mailer.rb
knitkit-2.1.8 app/mailers/document_mailer.rb
knitkit-2.1.7 app/mailers/document_mailer.rb
knitkit-2.1.6 app/mailers/document_mailer.rb
knitkit-2.1.5 app/mailers/document_mailer.rb
knitkit-2.1.4 app/mailers/document_mailer.rb
knitkit-2.1.3 app/mailers/document_mailer.rb
knitkit-2.1.2 app/mailers/document_mailer.rb
knitkit-2.1.1 app/mailers/document_mailer.rb
knitkit-2.1.0 app/mailers/document_mailer.rb
knitkit-2.0.11 app/mailers/document_mailer.rb
knitkit-2.0.10 app/mailers/document_mailer.rb
knitkit-2.0.9 app/mailers/document_mailer.rb