Sha256: d882a6aa8733c97743e85ad3437039d04db38f3d08c82a6d867ebf67866218e6

Contents?: true

Size: 311 Bytes

Versions: 7

Compression:

Stored size: 311 Bytes

Contents

module Cubism::Presence
  extend ActiveSupport::Concern

  included do
    kredis_set :present_users, after_change: :stream_presence
    kredis_set :cubicle_element_ids
    kredis_hash :excluded_user_id_for_element_id
  end

  def stream_presence
    Cubism::Broadcaster.new(resource: self).broadcast
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cubism-0.1.0.pre10 app/models/concerns/cubism/presence.rb~
cubism-0.1.0.pre9 app/models/concerns/cubism/presence.rb~
cubism-0.1.0.pre8 app/models/concerns/cubism/presence.rb
cubism-0.1.0.pre7 app/models/concerns/cubism/presence.rb
cubism-0.1.0.pre6 app/models/concerns/cubism/presence.rb
cubism-0.1.0.pre5 app/models/concerns/cubism/presence.rb
cubism-0.1.0.pre4 app/models/concerns/cubism/presence.rb