Class: CommentMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/comment_mailer.rb

Instance Method Summary collapse

Instance Method Details

#entry_reply(comment_id) ⇒ Object

Parameters:

  • comment (Integer)


3
4
5
6
7
# File 'app/mailers/comment_mailer.rb', line 3

def entry_reply(comment_id)
  @comment = Comment.find_by(id: comment_id)

  mail to: @comment.commentable.user.email unless @comment.nil?
end