metamaps--metamaps/spec/mailers/previews/map_mailer_preview.rb

19 lines
449 B
Ruby
Raw Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/map_mailer
class MapMailerPreview < ActionMailer::Preview
2017-02-09 21:53:19 +00:00
def invite_to_edit
user_map = UserMap.first
MapMailer.invite_to_edit(user_map)
end
2017-02-16 13:42:35 +00:00
def access_request
request = AccessRequest.first
2017-02-09 21:53:19 +00:00
MapMailer.access_request(request)
2016-12-13 07:42:33 +00:00
end
2017-02-16 13:42:35 +00:00
def access_approved
2016-12-13 07:42:33 +00:00
request = AccessRequest.first
2017-02-09 21:53:19 +00:00
MapMailer.access_approved(request)
end
end