Class: EffectivePollsMailerPreview
- Inherits:
-
ActionMailer::Preview
- Object
- ActionMailer::Preview
- EffectivePollsMailerPreview
- Defined in:
- lib/generators/templates/effective_polls_mailer_preview.rb
Overview
Instance Method Summary collapse
Instance Method Details
#poll_end ⇒ Object
20 21 22 23 |
# File 'lib/generators/templates/effective_polls_mailer_preview.rb', line 20 def poll_end poll_notification = build_poll_notification('The poll has ended') Effective::PollsMailer.poll_end(poll_notification, build_user) end |
#poll_reminder ⇒ Object
15 16 17 18 |
# File 'lib/generators/templates/effective_polls_mailer_preview.rb', line 15 def poll_reminder poll_notification = build_poll_notification('The poll started already and you have not participated') Effective::PollsMailer.poll_reminder(poll_notification, build_user) end |
#poll_start ⇒ Object
10 11 12 13 |
# File 'lib/generators/templates/effective_polls_mailer_preview.rb', line 10 def poll_start poll_notification = build_poll_notification('The poll has started') Effective::PollsMailer.poll_start(poll_notification, build_user) end |
#poll_upcoming_reminder ⇒ Object
5 6 7 8 |
# File 'lib/generators/templates/effective_polls_mailer_preview.rb', line 5 def poll_upcoming_reminder poll_notification = build_poll_notification('The poll will start soon') Effective::PollsMailer.poll_upcoming_reminder(poll_notification, build_user) end |