Sha256: d963c97e73de68830c2dfbbd7120accf879cf2a2da3b4b5627cc0f6e422da885
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
module Georgia class Notifier < ActionMailer::Base include SendGrid def notify_admins(message, url) @message = message @url = url emails_to = Georgia::User.admins.map(&:email) unless emails_to.empty? mail( from: "georgia@motioneleven.com", to: emails_to, subject: @message ) end end def notify_editors(message, url) @message = message @url = url emails_to = Georgia::User.editors.map(&:email) unless emails_to.empty? mail( from: "georgia@motioneleven.com", to: emails_to, subject: @message ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.7.3 | app/mailers/georgia/notifier.rb |
georgia-0.7.2 | app/mailers/georgia/notifier.rb |
georgia-0.7.1 | app/mailers/georgia/notifier.rb |
georgia-0.7.0 | app/mailers/georgia/notifier.rb |