Class: Kublog::CommentMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Kublog::CommentMailer
- Defined in:
- app/mailers/kublog/comment_mailer.rb
Instance Method Summary collapse
Instance Method Details
#new_comment(comment) ⇒ Object
4 5 6 7 8 |
# File 'app/mailers/kublog/comment_mailer.rb', line 4 def new_comment(comment) @comment, @post = comment, comment.post subject = I18n.t('kublog.comment_mailer.new_comment.subject', :post => @post.title) mail(:to => @post.user.email, :subject => subject, :from => @comment.email) end |