Add ReportMailer preview for devs

This commit is contained in:
Maikel Linke
2023-04-21 11:53:16 +10:00
committed by Konrad
parent 860fe85af9
commit 8a8c53ceee

View File

@@ -0,0 +1,10 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/report_mailer
class ReportMailerPreview < ActionMailer::Preview
def report_ready
ReportMailer.with(
blob: ReportBlob.last,
).report_ready
end
end