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

Version Path
tenon-1.1.4 app/mailers/tenon/comment_mailer.rb
tenon-1.1.3 app/mailers/tenon/comment_mailer.rb
tenon-1.1.2 app/mailers/tenon/comment_mailer.rb
tenon-1.1.1 app/mailers/tenon/comment_mailer.rb
tenon-1.0.76 app/mailers/tenon/comment_mailer.rb
tenon-1.0.75 app/mailers/tenon/comment_mailer.rb
tenon-1.0.74 app/mailers/tenon/comment_mailer.rb
tenon-1.0.73 app/mailers/tenon/comment_mailer.rb
tenon-1.0.72 app/mailers/tenon/comment_mailer.rb
tenon-1.0.71 app/mailers/tenon/comment_mailer.rb
tenon-1.0.70 app/mailers/tenon/comment_mailer.rb
tenon-1.0.69 app/mailers/tenon/comment_mailer.rb
tenon-1.0.68 app/mailers/tenon/comment_mailer.rb
tenon-1.0.67 app/mailers/tenon/comment_mailer.rb
tenon-1.0.66 app/mailers/tenon/comment_mailer.rb
tenon-1.0.65 app/mailers/tenon/comment_mailer.rb
tenon-1.0.64 app/mailers/tenon/comment_mailer.rb
tenon-1.0.63 app/mailers/tenon/comment_mailer.rb
tenon-1.0.62 app/mailers/tenon/comment_mailer.rb
tenon-1.0.61 app/mailers/tenon/comment_mailer.rb