Files
growstuff/app/mailers/notifier.rb
Miles Gould 6ab098c015 Move reply_link into a helper.
- keep @reply_link as an instance var, for testability
 - always use fully-qualified URLs, to reduce code duplication
2013-05-01 23:45:07 +01:00

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