diff options
author | Tiger <twatson@gitlab.com> | 2019-06-07 10:17:33 +0300 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-06-07 10:46:28 +0300 |
commit | 63b0c730af29fb333a467f50232fc9cd96c39625 (patch) | |
tree | 8868d5cf3871fcc9abf78b2b0f2c121dcaac4e07 /app/models/clusters/platforms/kubernetes.rb | |
parent | 3868a8f0f9f7bb3b8239295d50abe969d407a2a4 (diff) |
Add a default reactive cache key
Aligns with the other reactive cache options by
providing a default that can be overridden if necessary.
Diffstat (limited to 'app/models/clusters/platforms/kubernetes.rb')
-rw-r--r-- | app/models/clusters/platforms/kubernetes.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/clusters/platforms/kubernetes.rb b/app/models/clusters/platforms/kubernetes.rb index 9b951578aee..8e06156c73d 100644 --- a/app/models/clusters/platforms/kubernetes.rb +++ b/app/models/clusters/platforms/kubernetes.rb @@ -11,7 +11,6 @@ module Clusters RESERVED_NAMESPACES = %w(gitlab-managed-apps).freeze self.table_name = 'cluster_platforms_kubernetes' - self.reactive_cache_key = ->(kubernetes) { [kubernetes.class.model_name.singular, kubernetes.id] } belongs_to :cluster, inverse_of: :platform_kubernetes, class_name: 'Clusters::Cluster' |