2011-09-15 21:41:26 +00:00
|
|
|
class ThingMailer < ActionMailer::Base
|
2012-06-18 17:49:28 +00:00
|
|
|
default from: "adoptahydrant@cityofboston.gov"
|
2011-09-15 21:41:26 +00:00
|
|
|
|
2011-10-10 21:10:01 +00:00
|
|
|
def reminder(thing)
|
2011-09-15 21:41:26 +00:00
|
|
|
@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
|
|
|
}
|
|
|
|
)
|
2011-09-15 21:41:26 +00:00
|
|
|
end
|
|
|
|
end
|