2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2016-04-24 15:50:35 +00:00
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/map_mailer
|
|
|
|
class MapMailerPreview < ActionMailer::Preview
|
|
|
|
def invite_to_edit_email
|
|
|
|
MapMailer.invite_to_edit_email(Map.first, User.first, User.second)
|
|
|
|
end
|
2016-10-17 00:22:00 +00:00
|
|
|
|
|
|
|
def access_request_email
|
|
|
|
request = AccessRequest.first
|
2016-12-13 07:42:33 +00:00
|
|
|
MapMailer.access_request_email(request)
|
|
|
|
end
|
|
|
|
|
|
|
|
def access_approved_email
|
|
|
|
request = AccessRequest.first
|
|
|
|
MapMailer.access_approved_email(request)
|
2016-10-17 00:22:00 +00:00
|
|
|
end
|
2016-04-24 15:50:35 +00:00
|
|
|
end
|