Sha256: 74332351b99daf45de8282f1c10ab58aa7d6857e1ee10b2302544860ff40e0ed

Contents?: true

Size: 356 Bytes

Versions: 37

Compression:

Stored size: 356 Bytes

Contents

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

37 entries across 37 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.5.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.5.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.5.0.rc1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.5.0.beta2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.5.0.beta1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.4.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.3.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.4.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.2.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.1.1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.0.3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-1.4.2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.4.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.4.0.rc1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.4.0.beta1 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.3.0 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.3.0.rc3 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.3.0.rc2 lib/spree/mailer_previews/reimbursement_preview.rb
solidus_core-2.3.0.rc1 lib/spree/mailer_previews/reimbursement_preview.rb