Class: TurboPower::Streams::ActionBroadcastJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- TurboPower::Streams::ActionBroadcastJob
- Defined in:
- app/jobs/turbo_power/streams/action_broadcast_job.rb
Overview
The job that powers all the custom_broadcast_$action_later
broadcasts available in TurboPower::Broadcasts
.
Instance Method Summary collapse
Instance Method Details
#perform(stream, action:, **attributes) ⇒ Object
6 7 8 |
# File 'app/jobs/turbo_power/streams/action_broadcast_job.rb', line 6 def perform(stream, action:, **attributes) Turbo::StreamsChannel.custom_broadcast_action_to stream, action: action, **attributes end |