Class: EffectiveOrdersMailerPreview
- Inherits:
-
ActionMailer::Preview
- Object
- ActionMailer::Preview
- EffectiveOrdersMailerPreview
- Defined in:
- lib/generators/templates/effective_orders_mailer_preview.rb
Overview
In Rails 4.1 and above, visit: localhost:3000/rails/mailers to see a preview of the following 3 emails:
Instance Method Summary collapse
- #order_error ⇒ Object
- #order_receipt_to_admin ⇒ Object
- #order_receipt_to_buyer ⇒ Object
- #payment_request_to_buyer ⇒ Object
- #pending_order_invoice_to_buyer ⇒ Object
- #subscription_canceled ⇒ Object
- #subscription_created ⇒ Object
- #subscription_event_to_admin ⇒ Object
- #subscription_payment_failed ⇒ Object
- #subscription_payment_succeeded ⇒ Object
- #subscription_trial_expired ⇒ Object
- #subscription_trialing ⇒ Object
- #subscription_updated ⇒ Object
Instance Method Details
#order_error ⇒ Object
54 55 56 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 54 def order_error EffectiveOrders.mailer_klass.order_error(order: build_preview_order, error: 'Something did not work out') end |
#order_receipt_to_admin ⇒ Object
6 7 8 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 6 def order_receipt_to_admin EffectiveOrders.mailer_klass.order_receipt_to_admin(build_preview_order) end |
#order_receipt_to_buyer ⇒ Object
10 11 12 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 10 def order_receipt_to_buyer EffectiveOrders.mailer_klass.order_receipt_to_buyer(build_preview_order) end |
#payment_request_to_buyer ⇒ Object
14 15 16 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 14 def payment_request_to_buyer EffectiveOrders.mailer_klass.payment_request_to_buyer(build_preview_order) end |
#pending_order_invoice_to_buyer ⇒ Object
18 19 20 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 18 def pending_order_invoice_to_buyer EffectiveOrders.mailer_klass.pending_order_invoice_to_buyer(build_preview_order) end |
#subscription_canceled ⇒ Object
38 39 40 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 38 def subscription_canceled EffectiveOrders.mailer_klass.subscription_canceled(preview_customer) end |
#subscription_created ⇒ Object
30 31 32 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 30 def subscription_created EffectiveOrders.mailer_klass.subscription_created(preview_customer) end |
#subscription_event_to_admin ⇒ Object
50 51 52 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 50 def subscription_event_to_admin EffectiveOrders.mailer_klass.subscription_event_to_admin(:subscription_updated, preview_customer) end |
#subscription_payment_failed ⇒ Object
26 27 28 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 26 def subscription_payment_failed EffectiveOrders.mailer_klass.subscription_payment_failed(preview_customer) end |
#subscription_payment_succeeded ⇒ Object
22 23 24 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 22 def subscription_payment_succeeded EffectiveOrders.mailer_klass.subscription_payment_succeeded(preview_customer) end |
#subscription_trial_expired ⇒ Object
46 47 48 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 46 def subscription_trial_expired EffectiveOrders.mailer_klass.subscription_trial_expired(preview_subscribable) end |
#subscription_trialing ⇒ Object
42 43 44 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 42 def subscription_trialing EffectiveOrders.mailer_klass.subscription_trialing(preview_subscribable) end |
#subscription_updated ⇒ Object
34 35 36 |
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 34 def subscription_updated EffectiveOrders.mailer_klass.subscription_updated(preview_customer) end |