Sha256: 0a1a0ea78cd235ce34282985e9db04587438ded4ee2b7b064f1782eae94610c4
Contents?: true
Size: 504 Bytes
Versions: 79
Compression:
Stored size: 504 Bytes
Contents
module Tenon class CommentMailer < ActionMailer::Base # TODO: Find a better way to set the host # default_url_options[:host] = MySettings.site_url ? MySettings.site_url.gsub('http://', '') : 'localhost:3000' 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 end end
Version data entries
79 entries across 79 versions & 1 rubygems