Class: Tenon::CommentMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Tenon::CommentMailer
- Defined in:
- app/mailers/tenon/comment_mailer.rb
Instance Method Summary collapse
-
#comment_notification(email, comment) ⇒ Object
TODO: Find a better way to set the host default_url_options = MySettings.site_url ? MySettings.site_url.gsub(‘http://’, ”) : ‘localhost:3000’.
Instance Method Details
#comment_notification(email, comment) ⇒ Object
TODO: Find a better way to set the host default_url_options = MySettings.site_url ? MySettings.site_url.gsub(‘http://’, ”) : ‘localhost:3000’
6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/tenon/comment_mailer.rb', line 6 def comment_notification(email, comment) @post = comment.commentable @comment = comment mail( to: email, subject: "#{Tenon::MySettings.site_name} - New Comment: #{@post.title}", from: Tenon::MySettings.from_email ) end |