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

15 lines
305 B
Ruby
Raw Normal View History

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