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

15 lines
296 B
Ruby
Raw Normal View History

class ThingMailer < ActionMailer::Base
2014-03-25 09:47:44 +00:00
default from: "adoptahydrant@cityofboston.gov"
2011-10-10 21:10:01 +00:00
def reminder(thing)
@thing = thing
@user = thing.user
2011-10-10 21:10:01 +00:00
mail(
{
2014-03-25 09:47:44 +00:00
to: thing.user.email,
subject: ["Remember to shovel", thing.name].compact.join(' '),
2011-10-10 21:10:01 +00:00
}
)
end
end