Class: Spree::MailerPreviews::ReimbursementPreview
- Inherits:
-
ActionMailer::Preview
- Object
- ActionMailer::Preview
- Spree::MailerPreviews::ReimbursementPreview
- Defined in:
- lib/spree/mailer_previews/reimbursement_preview.rb
Instance Method Summary collapse
Instance Method Details
#reimbursement ⇒ Object
6 7 8 9 10 |
# File 'lib/spree/mailer_previews/reimbursement_preview.rb', line 6 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 |