Sha256: 6af580127f32e5e5df6ec483c7950d9c1f3c2f11a0f51f305a1fae779ed95ce0

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

class AppearanceChannel < ApplicationCable::Channel
  def subscribed
    current_user.appear
  end

  def unsubscribed
    current_user.disappear
  end

  def appear(data)
    current_user.appear on: data['appearing_on']
  end

  def away
    current_user.away
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 rails_example/app/channels/appearance_channel.rb
sidekiq-unique-jobs-5.0.1 rails_example/app/channels/appearance_channel.rb
sidekiq-unique-jobs-5.0.0 rails_example/app/channels/appearance_channel.rb
sidekiq-unique-jobs-4.0.18 rails_example/app/channels/appearance_channel.rb