summaryrefslogtreecommitdiff
path: root/spec/models/concerns/redis_cacheable_spec.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-05-16 22:43:38 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-05-16 22:43:38 +0200
commiteeb955a66d2410d7117737ecd1b33b0cfe67327b (patch)
tree2d4e20014c2202348ba17639408c96e3ccc8c202 /spec/models/concerns/redis_cacheable_spec.rb
parent4e1bb1d1014237df79db6b3cc2beb24228a4b228 (diff)
downloadgitlab-ce-eeb955a66d2410d7117737ecd1b33b0cfe67327b.tar.gz
Revert "Move argument check to cached getter definition class method"
This reverts commit 4e1bb1d1014237df79db6b3cc2beb24228a4b228.
Diffstat (limited to 'spec/models/concerns/redis_cacheable_spec.rb')
-rw-r--r--spec/models/concerns/redis_cacheable_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/redis_cacheable_spec.rb b/spec/models/concerns/redis_cacheable_spec.rb
index 089ae080b0c..2da0f33e27b 100644
--- a/spec/models/concerns/redis_cacheable_spec.rb
+++ b/spec/models/concerns/redis_cacheable_spec.rb
@@ -11,8 +11,8 @@ describe RedisCacheable do
cached_value
end
- def self.attribute_names
- %w[name time]
+ def has_attribute?(attribute)
+ attributes.has_key?(attribute)
end
end
end