2011-09-15 21:41:26 +00:00
|
|
|
class ThingMailer < ActionMailer::Base
|
2011-10-10 21:10:01 +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(
|
|
|
|
{
|
|
|
|
:to => thing.user.email,
|
|
|
|
:subject => ["Remember to shovel", thing.name].compact.join(' '),
|
|
|
|
}
|
|
|
|
)
|
2011-09-15 21:41:26 +00:00
|
|
|
end
|
|
|
|
end
|