diff --git a/.rubocop.yml b/.rubocop.yml index f4552f1afeefdff139cdb6657851f89b9132ca86..5e6705c20c0780b84a9ee94fa59cf0560d0488ac 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,6 +10,7 @@ AllCops: - 'db/**/*' - 'scripts/**/*' - 'bin/**/*' + - 'lib/namespaced_env_cache.rb' NewCops: enable SuggestExtensions: false diff --git a/lib/namespaced_env_cache.rb b/lib/namespaced_env_cache.rb index 21194512582ec90c2fa23287671a1daef5549bca..af5130e70f6fae819ba0450ea592005b341ac455 100644 --- a/lib/namespaced_env_cache.rb +++ b/lib/namespaced_env_cache.rb @@ -71,6 +71,7 @@ module QPixel end private + def construct_ns_key(key, include_community: true) c_id = RequestContext.community_id if include_community "#{Rails.env}://#{[c_id, key].compact.join('/')}"