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.27 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.26 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.45 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.25 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.23 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.44 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.22 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.43 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.21 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.42 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.20 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.41 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.19 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.40 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.18 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.39 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.17 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.38 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.16 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.37 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb