Sha256: ea4701e6b61dfc2dc79a3c0e146e1eb9ac4bdc247b5cbcd10c397b51da62316a

Contents?: true

Size: 320 Bytes

Versions: 15

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

require_relative "channels"

module CableReady
  module Broadcaster
    extend ::ActiveSupport::Concern

    def cable_ready
      CableReady::Channels.instance
    end

    def dom_id(record, prefix = nil)
      "##{ActionView::RecordIdentifier.dom_id(record, prefix)}"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cable_ready-4.5.0 lib/cable_ready/broadcaster.rb
cable_ready-4.4.6 lib/cable_ready/broadcaster.rb
cable_ready-4.4.5 lib/cable_ready/broadcaster.rb
cable_ready-4.4.3 lib/cable_ready/broadcaster.rb
cable_ready-4.4.2 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0.pre4 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0.pre3 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0.pre2 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0.pre1 lib/cable_ready/broadcaster.rb
cable_ready-4.4.0.pre0 lib/cable_ready/broadcaster.rb
cable_ready-4.3.0 lib/cable_ready/broadcaster.rb
cable_ready-4.3.0.pre2 lib/cable_ready/broadcaster.rb
cable_ready-4.3.0.pre1 lib/cable_ready/broadcaster.rb
cable_ready-4.3.0.pre0 lib/cable_ready/broadcaster.rb