Sha256: 341a0762e9ff6014620d7d3f5e5c5c221b0c53ffcb5bea5cd72cb0c71d43efc9

Contents?: true

Size: 408 Bytes

Versions: 125

Compression:

Stored size: 408 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
        Spree::Config.reimbursement_mailer_class.reimbursement_email(reimbursement)
      end
    end
  end
end

Version data entries

125 entries across 125 versions & 2 rubygems

Version Path
solidus_core-4.4.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.4.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.4.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.3.4 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.2.4 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.1.5 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.3.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.3.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.1.4 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.3.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.3.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.2.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.1.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.0.4 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-3.4.6 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.0.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.1.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.2.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-3.4.5 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-4.2.1 lib/spree/mailer_previews/reimbursement_preview.rb