Class: EffectivePollsMailerPreview

Inherits:
ActionMailer::Preview
  • Object
show all
Defined in:
lib/generators/templates/effective_polls_mailer_preview.rb

Overview

Instance Method Summary collapse

Instance Method Details

#poll_endObject



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_reminderObject



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_startObject



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_reminderObject



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