Class: MailPreview

Inherits:
MailView
  • Object
show all
Defined in:
lib/mail_preview.rb

Instance Method Summary collapse

Instance Method Details

#approval_reply_received_emailObject


13
14
15
16
# File 'lib/mail_preview.rb', line 13

def approval_reply_received_email
  mail = CommunicartMailer.approval_reply_received_email(received_approval)
  inline_styles(mail)
end

#cart_notification_emailObject


2
3
4
5
6
# File 'lib/mail_preview.rb', line 2

def cart_notification_email
  # TODO mock access token, if one isn't present
  mail = CommunicartMailer.cart_notification_email(email, pending_approval)
  inline_styles(mail)
end

#cart_observer_emailObject


8
9
10
11
# File 'lib/mail_preview.rb', line 8

def cart_observer_email
  mail = CommunicartMailer.cart_observer_email(email, cart)
  inline_styles(mail)
end

#comment_added_emailObject


18
19
20
21
# File 'lib/mail_preview.rb', line 18

def comment_added_email
  mail = CommunicartMailer.comment_added_email(comment, email)
  inline_styles(mail)
end