diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-01 12:51:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-01 12:51:31 +0300 |
commit | 37d5cece3603d8df9f75c507594e70dade80c99f (patch) | |
tree | 84e6d51a3329b4f9bd13bf92e61fe401446e2d2a /lib/gitlab/patch | |
parent | f8796c0836e943a27e26250c7cd4a5766e567f61 (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-ee
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r-- | lib/gitlab/patch/action_cable_subscription_adapter_identifier.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/gitlab/patch/action_cable_subscription_adapter_identifier.rb b/lib/gitlab/patch/action_cable_subscription_adapter_identifier.rb new file mode 100644 index 00000000000..e7ac562d844 --- /dev/null +++ b/lib/gitlab/patch/action_cable_subscription_adapter_identifier.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +# Modifies https://github.com/rails/rails/blob/v6.1.4.1/actioncable/lib/action_cable/subscription_adapter/base.rb so +# that we do not overwrite an id that was explicitly set to `nil` in cable.yml. +# This is needed to support GCP Memorystore. See https://github.com/rails/rails/issues/38244. + +module Gitlab + module Patch + module ActionCableSubscriptionAdapterIdentifier + def identifier + @server.config.cable.has_key?(:id) ? @server.config.cable[:id] : super # rubocop:disable Gitlab/ModuleWithInstanceVariables + end + end + end +end |