Sha256: 9a0f9fd0afa3ca991a71551e60c8a0cf07d8d2971f11da7d24e658e0628336a1

Contents?: true

Size: 370 Bytes

Versions: 62

Compression:

Stored size: 370 Bytes

Contents

module Workarea
  module Storefront
    class OrderMailerPreview < ActionMailer::Preview

      def order_confirmation
        order = OrderViewModel.new(Order.placed.last)
        OrderMailer.confirmation(order.id)
      end

      def reminder
        order = Order.where(:email.exists => true).first
        OrderMailer.reminder(order.id)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.15 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.36 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.14 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.35 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.13 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.34 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.12 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.33 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.11 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.10 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.32 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.9 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.31 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.8 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.30 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.7 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.29 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.6 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.28 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.5 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb