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