Sha256: 3fcb4ad56772087a2fd48cda7954749aaf9d4740b1ee92e598dfe1cb1d7f769b

Contents?: true

Size: 295 Bytes

Versions: 28

Compression:

Stored size: 295 Bytes

Contents

module Workarea
  module Admin
    class StatusReportMailerPreview < ActionMailer::Preview
      def report
        user = User.status_email_recipients.to_a.first
        email = user&.email || 'test@workarea.com'
        StatusReportMailer.report(email, user: user)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.26 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.25 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.23 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.22 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.21 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.20 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.19 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.18 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.17 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.16 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.15 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.14 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.13 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.12 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.11 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.10 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.9 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.8 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.7 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb