Skip to content

Commit

Permalink
fix: use ivars in identification where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jan 4, 2025
1 parent f397cfb commit 441b4b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions gemfiles/anyt.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
source "https://rubygems.org" do
gem "anycable-rails", path: ".."
gem "anyt", "~> 1.4"
gem "anycable", ">= 1.6.0.rc.1"
gem "anyt"
gem "nio4r", "2.7.4"

gem "rails", git: "https://github.com/palkan/rails.git", branch: "refactor/action-cable-server-adapterization"
gem "actioncable-next"
gem "rails"
gem "puma"
end
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module SerializableIdentification
module ConnectionGID
def connection_identifier
unless defined? @connection_identifier
@connection_identifier = connection_gid identifiers.filter_map { |id| __send__(id) }
@connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get(:"@#{id}") || __send__(id) }
end

@connection_identifier
Expand Down

0 comments on commit 441b4b1

Please sign in to comment.