Class: Course::Announcement::ReminderService

Inherits:
Object
  • Object
show all
Defined in:
app/services/course/announcement/reminder_service.rb

Instance Method Summary collapse

Instance Method Details

#opening_reminder(user, announcement, token) ⇒ Object


7
8
9
10
11
# File 'app/services/course/announcement/reminder_service.rb', line 7

def opening_reminder(user, announcement, token)
  return unless announcement.opening_reminder_token == token

  Course::AnnouncementNotifier.new_announcement(user, announcement)
end