Sha256: d24be10025d317f4e079edc2892b9fd44f2528c774bd4faefea85aa381771880

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

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

      private

      def current_channel
        "notify-chapters-#{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/chapters_channel.rb
decidim-notify-0.4 app/channels/decidim/notify/chapters_channel.rb
decidim-notify-0.3 app/channels/decidim/notify/chapters_channel.rb