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

Version Path
qcms-2.1.0 app/models/document_mailer.rb
qcms-2.0.0 app/models/document_mailer.rb
qcms-1.3.10 app/models/document_mailer.rb
qcms-1.3.9 app/models/document_mailer.rb
qcms-1.3.8 app/models/document_mailer.rb
qcms-1.3.7 app/models/document_mailer.rb
qcms-1.3.6 app/models/document_mailer.rb
qcms-1.3.5 app/models/document_mailer.rb
qcms-1.3.3 app/models/document_mailer.rb