Sha256: d22e0eac5d909d3ce8c701886a6bf5ae146008fe8f77cb46929e7d8fd0521f8b
Contents?: true
Size: 447 Bytes
Versions: 9
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true class CableReadyBroadcastJob < (defined?(ActiveJob::Base) ? ActiveJob::Base : Object) include CableReady::Broadcaster queue_as :default if defined?(ActiveJob::Base) 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 end
Version data entries
9 entries across 9 versions & 1 rubygems