Class: Turbo::Streams::ActionBroadcastJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Turbo::Streams::ActionBroadcastJob
- Defined in:
- app/jobs/turbo/streams/action_broadcast_job.rb
Overview
The job that powers all the broadcast_$action_later
broadcasts available in Turbo::Streams::Broadcasts
.
Instance Method Summary collapse
Instance Method Details
#perform(stream, action:, target:, **rendering) ⇒ Object
3 4 5 |
# File 'app/jobs/turbo/streams/action_broadcast_job.rb', line 3 def perform(stream, action:, target:, **rendering) Turbo::StreamsChannel.broadcast_action_to stream, action: action, target: target, **rendering end |