Sha256: e444a178f6036d6198fd493ca01dacfbe5b76a50fbf6a3128c709da62c598e69

Contents?: true

Size: 387 Bytes

Versions: 8

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Spree
  class MailerPreviews
    class ReimbursementPreview < ActionMailer::Preview
      def reimbursement
        reimbursement = Reimbursement.last
        raise "Your database needs at least one Reimbursement to render this preview" unless reimbursement
        ReimbursementMailer.reimbursement_email(reimbursement)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_core-2.6.6 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.5 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.4 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.6.0.rc1 lib/spree/mailer_previews/reimbursement_preview.rb