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.4.27 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.4 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.26 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.3 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.25 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.2 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.24 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.1 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.23 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.22 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.0 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.21 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.5.0.beta.1 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.20 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.19 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.18 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.17 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.16 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.15 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb
workarea-storefront-3.4.14 lib/workarea/mailer_previews/storefront/order_mailer_preview.rb