Class: CommentMailer

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

Instance Method Summary collapse

Instance Method Details

#comment_notification(email, comment) ⇒ Object



5
6
7
8
9
# File 'lib/forge/app/mailers/comment_mailer.rb', line 5

def comment_notification(email, comment)
  @post = comment.commentable
  @comment = comment
  mail(:to => email, :subject => "#{MySettings.site_name} - New Comment: #{@post.title}")
end