pixels-and-bits/jabe

View on GitHub
app/mailers/jabe/comment_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Jabe
  class CommentMailer < ActionMailer::Base
    include PublicEntryUrl

    def notification(comment)
      @comment = comment

      mail(:to => Admin.all.map(&:email),
        :subject => "Comment on: #{comment.entry.title}",
        :from => Jabe::SETTINGS.mail_from || 'edit-me-in-settings@example.com'
      )
    end
  end
end