Class: Effective::PollsMailer
- Inherits:
-
Object
- Object
- Effective::PollsMailer
- Includes:
- EffectiveEmailTemplatesMailer, EffectiveMailer
- Defined in:
- app/mailers/effective/polls_mailer.rb
Instance Method Summary collapse
- #poll_before_poll_ends(poll_notification, user) ⇒ Object
- #poll_reminder(poll_notification, user) ⇒ Object
- #poll_upcoming_reminder(poll_notification, user) ⇒ Object
- #poll_when_poll_ends(poll_notification, user) ⇒ Object
- #poll_when_poll_starts(poll_notification, user) ⇒ Object
Instance Method Details
#poll_before_poll_ends(poll_notification, user) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'app/mailers/effective/polls_mailer.rb', line 40 def poll_before_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_reminder(poll_notification, user) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'app/mailers/effective/polls_mailer.rb', line 29 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
7 8 9 10 11 12 13 14 15 16 |
# File 'app/mailers/effective/polls_mailer.rb', line 7 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
51 52 53 54 55 56 57 58 59 60 |
# File 'app/mailers/effective/polls_mailer.rb', line 51 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
18 19 20 21 22 23 24 25 26 27 |
# File 'app/mailers/effective/polls_mailer.rb', line 18 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 |