Sha256: 3e5d382991ef2302be9b084a21724244a1fc2e809112153c4bb71183c2ed8a61

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

class CommentMailer < ActionMailer::Base
  default :from =>  Jabe::SETTINGS.mail_from

  def notification(comment, request)
    @comment = comment
    @request = request

    mail(:to => Admin.all.map(&:email),
      :subject => "Comment on: #{comment.entry.title}"
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jabe-0.6.1 app/mailers/jabe/comment_mailer.rb
jabe-0.6.0 app/mailers/jabe/comment_mailer.rb