mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-28 19:21:00 -05:00
- keep @reply_link as an instance var, for testability - always use fully-qualified URLs, to reduce code duplication
13 lines
325 B
Ruby
13 lines
325 B
Ruby
class Notifier < ActionMailer::Base
|
|
include NotificationsHelper
|
|
default from: "Growstuff <noreply@growstuff.org>"
|
|
|
|
def notify(notification)
|
|
@notification = notification
|
|
@reply_link = reply_link(@notification)
|
|
|
|
mail(:to => @notification.recipient.email,
|
|
:subject => @notification.subject)
|
|
end
|
|
end
|