Sha256: 0210ddf1f9c70d7a7845c247e1f0b4d303215165a3ceb296a5cc472ceeecff93
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
class Cubism::StreamPresenceJob < ApplicationJob include CableReady::Broadcaster queue_as :default def perform(resource:) cable_ready[Cubism::PresenceChannel].outer_html( selector: dom_id(resource, "cubicle").to_s, html: ApplicationController.render(partial: "shared/presence_indicator", locals: {users: User.where(id: resource.present_users.members)}) ).broadcast end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cubism-0.1.0.pre3 | app/jobs/cubism/stream_presence_job.rb~ |
cubism-0.1.0.pre2 | app/jobs/cubism/stream_presence_job.rb~ |
cubism-0.1.0.pre1 | app/jobs/cubism/stream_presence_job.rb~ |