Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordineshpanda <dineshpanda92@gmail.com>2019-08-31 22:57:00 +0300
committerdineshpanda <dineshpanda92@gmail.com>2019-08-31 22:57:00 +0300
commit20111b045d7df27223808b1e8eaa4861d4906863 (patch)
treea8050f23fb5ef660f2c366c86e9230c237f4a63a /app/models/concerns/cacheable_attributes.rb
parentdc864927246746a34b675c7ee8ffbd1b533841e0 (diff)
Avoid calling freeze on already frozen strings in app/models
Diffstat (limited to 'app/models/concerns/cacheable_attributes.rb')
-rw-r--r--app/models/concerns/cacheable_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/cacheable_attributes.rb b/app/models/concerns/cacheable_attributes.rb
index 0c800621a55..d459af23a2f 100644
--- a/app/models/concerns/cacheable_attributes.rb
+++ b/app/models/concerns/cacheable_attributes.rb
@@ -11,7 +11,7 @@ module CacheableAttributes
class_methods do
def cache_key
- "#{name}:#{Gitlab::VERSION}:#{Rails.version}".freeze
+ "#{name}:#{Gitlab::VERSION}:#{Rails.version}"
end
# Can be overridden