Class: Jabe::CommentMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Jabe::CommentMailer
- Defined in:
- app/mailers/jabe/comment_mailer.rb
Instance Method Summary collapse
Instance Method Details
#notification(comment, request) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/mailers/jabe/comment_mailer.rb', line 3 def notification(comment, request) @comment = comment @request = request from Jabe::SETTINGS.mail_from || '[email protected]' mail(:to => Admin.all.map(&:email), :subject => "Comment on: #{comment.entry.title}" ) end |