lib/action_cable/connection/identification.rb in actioncable-5.1.7 vs lib/action_cable/connection/identification.rb in actioncable-5.2.0.beta1

- old
+ new

@@ -1,14 +1,15 @@ +# frozen_string_literal: true + require "set" module ActionCable module Connection module Identification extend ActiveSupport::Concern included do - class_attribute :identifiers - self.identifiers = Set.new + class_attribute :identifiers, default: Set.new end class_methods do # Mark a key as being a connection identifier index that can then be used to find the specific connection again later. # Common identifiers are current_user and current_account, but could be anything, really.