lib/cacheable.rb in simple_cacheable-1.1.4 vs lib/cacheable.rb in simple_cacheable-1.1.5

- old
+ new

@@ -115,12 +115,11 @@ Rails.cache.delete model_cache_key end def expire_attribute_cache self.class.cached_indices.each do |attribute, values| - values.each do |value| - Rails.cache.delete self.class.attribute_cache_key(attribute, value) - end + value = self.send(attribute) + Rails.cache.delete self.class.attribute_cache_key(attribute, value) end end def expire_method_cache self.class.cached_methods.each do |meth|