adopt-a-hydrant/app/mailers/thing_mailer.rb

10 lines
257 B
Ruby
Raw Normal View History

class ThingMailer < ActionMailer::Base
2014-04-01 08:15:29 +00:00
default from: 'adoptahydrant@cityofboston.gov'
2011-10-10 21:10:01 +00:00
def reminder(thing)
@thing = thing
@user = thing.user
2014-04-01 08:15:29 +00:00
mail(to: thing.user.email, subject: ['Remember to shovel', thing.name].compact.join(' '))
end
end