Class: CommentMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- CommentMailer
- Defined in:
- app/mailers/comment_mailer.rb
Instance Method Summary collapse
Instance Method Details
#entry_reply(comment_id) ⇒ Object
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 |