Class: Whatson::CommentMailer

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

Instance Method Summary collapse

Instance Method Details

#notification(comment, request) ⇒ Object



4
5
6
7
8
9
10
# File 'app/mailers/whatson/comment_mailer.rb', line 4

def notification(comment, request)
  subject     WhatsonComment::Notification.subject
  recipients  WhatsonComment::Notification.recipients
  from        "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
  sent_on     Time.now
  @comment =  comment
end