Sha256: 9e74bbb050a66fddcfda35dc7a6779f2e1becaebb40759db717b93317f6a863c

Contents?: true

Size: 289 Bytes

Versions: 3

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Notify
    class NotesChannel < ActionCable::Channel::Base
      def subscribed
        stream_from current_channel
      end

      private

      def current_channel
        "notify-notes-#{params[:id]}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-notify-0.5 app/channels/decidim/notify/notes_channel.rb
decidim-notify-0.4 app/channels/decidim/notify/notes_channel.rb
decidim-notify-0.3 app/channels/decidim/notify/notes_channel.rb