Skip to content
Snippets Groups Projects
Commit febc82fe authored by Taico Aerts's avatar Taico Aerts
Browse files

Fix rubocop errors

The namespaced env cache breaks multiple rubocop rules with regards to
using map on a hash-like object. However, the suggested fixes break the
intention of the code. Therefore, I have added it to be ignored.
parent a1140cb2
No related branches found
No related tags found
1 merge request!24Release 22-09-2022
......@@ -10,6 +10,7 @@ AllCops:
- 'db/**/*'
- 'scripts/**/*'
- 'bin/**/*'
- 'lib/namespaced_env_cache.rb'
NewCops: enable
SuggestExtensions: false
......
......@@ -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('/')}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment