Class: Turbo::Train::ActionBroadcastJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/turbo/train/action_broadcast_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(stream, action:, target:, **rendering) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/jobs/turbo/train/action_broadcast_job.rb', line 6

def perform(stream, action:, target:, **rendering)
  Turbo::Train.broadcast_action_to(
    stream,
    action: action,
    target: target,
    **rendering
  )
end