Class: MailyHerald::ScheduleUpdater

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/maily_herald.rb

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



39
40
41
42
# File 'lib/maily_herald.rb', line 39

def perform id
  dispatch = MailyHerald::Dispatch.find(id)
  dispatch.set_schedules if dispatch.respond_to?(:set_schedules)
end