Class: DelayHenka::ApplyActionsWorker
- Inherits:
-
Object
- Object
- DelayHenka::ApplyActionsWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- app/workers/delay_henka/apply_actions_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 |
# File 'app/workers/delay_henka/apply_actions_worker.rb', line 6 def perform ScheduledAction.staged .where('schedule_at <= ?', Time.current) .includes(:actionable) .find_each(&:apply_action) end |