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

10 lines
257 B
Ruby

class ThingMailer < ActionMailer::Base
default from: 'adoptahydrant@cityofboston.gov'
def reminder(thing)
@thing = thing
@user = thing.user
mail(to: thing.user.email, subject: ['Remember to shovel', thing.name].compact.join(' '))
end
end