Sha256: a4f75b395b153a7e8a638981275cb17f1f64136f43d781664fddeff07fd7ea3e
Contents?: true
Size: 670 Bytes
Versions: 5
Compression:
Stored size: 670 Bytes
Contents
module Georgia class Notifier < ActionMailer::Base 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
5 entries across 5 versions & 1 rubygems