Class: Effective::PollsMailer

Inherits:
Object
  • Object
show all
Defined in:
app/mailers/effective/polls_mailer.rb

Instance Method Summary collapse

Instance Method Details

#poll_reminder(poll_notification, user) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'app/mailers/effective/polls_mailer.rb', line 27

def poll_reminder(poll_notification, user)
  @assigns = effective_email_templates_assigns(poll_notification, user)

  mail(
    to: user.email,
    from: poll_notification.from,
    body: poll_notification.body,
    subject: poll_notification.subject
  )
end

#poll_upcoming_reminder(poll_notification, user) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/effective/polls_mailer.rb', line 5

def poll_upcoming_reminder(poll_notification, user)
  @assigns = effective_email_templates_assigns(poll_notification, user)

  mail(
    to: user.email,
    from: poll_notification.from,
    body: poll_notification.body,
    subject: poll_notification.subject
  )
end

#poll_when_poll_ends(poll_notification, user) ⇒ Object



38
39
40
41
42
43
44
45
46
47
# File 'app/mailers/effective/polls_mailer.rb', line 38

def poll_when_poll_ends(poll_notification, user)
  @assigns = effective_email_templates_assigns(poll_notification, user)

  mail(
    to: user.email,
    from: poll_notification.from,
    body: poll_notification.body,
    subject: poll_notification.subject
  )
end

#poll_when_poll_starts(poll_notification, user) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'app/mailers/effective/polls_mailer.rb', line 16

def poll_when_poll_starts(poll_notification, user)
  @assigns = effective_email_templates_assigns(poll_notification, user)

  mail(
    to: user.email,
    from: poll_notification.from,
    body: poll_notification.body,
    subject: poll_notification.subject
  )
end