metamaps--metamaps/app/mailers/map_mailer.rb
2016-09-24 11:00:46 +08:00

11 lines
296 B
Ruby

# frozen_string_literal: true
class MapMailer < ApplicationMailer
default from: 'team@metamaps.cc'
def invite_to_edit_email(map, inviter, invitee)
@inviter = inviter
@map = map
subject = @map.name + ' - Invitation to edit'
mail(to: invitee.email, subject: subject)
end
end