diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/concerns/redis_cacheable_spec.rb | 4 |
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 |