Class: Jabe::CommentMailer

Inherits:
ActionMailer::Base
  • Object
show all
Includes:
PublicEntryUrl
Defined in:
app/mailers/jabe/comment_mailer.rb

Instance Method Summary collapse

Methods included from PublicEntryUrl

included, #public_entry_url

Instance Method Details

#notification(comment) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/mailers/jabe/comment_mailer.rb', line 5

def notification(comment)
  @comment = comment

  mail(:to => Admin.all.map(&:email),
    :subject => "Comment on: #{comment.entry.title}",
    :from => Jabe::SETTINGS.mail_from || '[email protected]'
  )
end