19 lines
450 B
Ruby
19 lines
450 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/map_mailer
|
|
class MapMailerPreview < ActionMailer::Preview
|
|
def invite_to_edit
|
|
user_map = UserMap.first
|
|
MapMailer.invite_to_edit(user_map)
|
|
end
|
|
|
|
def access_request
|
|
request = AccessRequest.first
|
|
MapMailer.access_request(request)
|
|
end
|
|
|
|
def access_approved
|
|
request = AccessRequest.first
|
|
MapMailer.access_approved(request)
|
|
end
|
|
end
|