Class: CableReady::BroadcastJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- CableReady::BroadcastJob
- Includes:
- Broadcaster
- Defined in:
- app/jobs/cable_ready/broadcast_job.rb
Instance Method Summary collapse
Methods included from Broadcaster
Methods included from Identifiable
Instance Method Details
#perform(identifier:, operations:, model: nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/jobs/cable_ready/broadcast_job.rb', line 7 def perform(identifier:, operations:, model: nil) if model.present? cable_ready[identifier.safe_constantize].apply!(operations).broadcast_to(model) else cable_ready[identifier].apply!(operations).broadcast end end |