Class: CommentMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- CommentMailer
- Defined in:
- app/mailers/comment_mailer.rb
Instance Method Summary collapse
Instance Method Details
#admin_mention(comment) ⇒ Object
4 5 6 7 8 |
# File 'app/mailers/comment_mailer.rb', line 4 def admin_mention(comment) @comment = comment mail(to: @comment.admins.pluck(:email), subject: t('.subject')) end |