Permalink
Browse files

Merge pull request #874 from gugat/expire_helper

Get the first key passed to expire helper. Fixes #873
  • Loading branch information...
DAddYE committed Jul 4, 2012
2 parents 9c5f6be + b31967c commit 04d26c4a696e9eb50e247e308fad1d62d7ba7198
Showing with 1 addition and 1 deletion.
  1. +1 −1 padrino-cache/lib/padrino-cache/helpers/cache_store.rb
@@ -6,7 +6,7 @@ module CacheStore # @private
# @api private
def expire(*key)
if key.size == 1 and key.first.is_a?(String)
settings.cache.delete(key)
settings.cache.delete(key.first)
else
settings.cache.delete(self.class.url(*key))
end

0 comments on commit 04d26c4

Please sign in to comment.