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.6 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.5 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.4 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.3 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.2 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.1 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.0 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb
workarea-admin-3.5.0.beta.1 lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb