Sha256: 83a250b9e441caca23202d53cbc18cb366346039becdb6bc3633524293fe2ac3
Contents?: true
Size: 332 Bytes
Versions: 9
Compression:
Stored size: 332 Bytes
Contents
class DocumentMailer < ActionMailer::Base def new_document(document) subject "[#{Settings.site.name}] New #{document.label}" from Settings.mailer.from recipients User.all.select { |u| u.has_role? 'admin'}.collect { |u| u.email }.join(', ') body :document => document content_type "text/html" end end
Version data entries
9 entries across 9 versions & 1 rubygems