b740fef8fe
* data prepared, task setup * add the basics of the email template * cover granular permissions * unfollow this map * break out permissions tests better * rename so test runs
11 lines
302 B
Ruby
11 lines
302 B
Ruby
# frozen_string_literal: true
|
|
class MapActivityMailer < ApplicationMailer
|
|
default from: 'team@metamaps.cc'
|
|
|
|
def daily_summary(user, map, summary_data)
|
|
@user = user
|
|
@map = map
|
|
@summary_data = summary_data
|
|
mail(to: user.email, subject: MapActivityService.subject_line(map))
|
|
end
|
|
end
|