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

15 lines
296 B
Ruby
Raw Normal View History

class ThingMailer < ActionMailer::Base
2012-06-18 17:49:28 +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(
{
2012-06-18 17:49:28 +00:00
to: thing.user.email,
subject: ["Remember to shovel", thing.name].compact.join(' '),
2011-10-10 21:10:01 +00:00
}
)
end
end