Permalink
Browse files

Fix BasicFile#[] when :skip_expire is true

Signed-off-by: Yehuda Katz <wycats@gmail.com>
  • Loading branch information...
jarib authored and wycats committed Jul 27, 2009
1 parent f403660 commit 5c2abf5fb3481836e28cf765ac30c28a429093d9
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/moneta/basic_file.rb
View
@@ -45,6 +45,8 @@ def [](key)
else
delete!(key)
end
+ else
+ data
end
end
end

2 comments on commit 5c2abf5

@yfeldblum

This comment has been minimized.

Show comment Hide comment
@yfeldblum

yfeldblum Sep 20, 2011

@databus23

This comment has been minimized.

Show comment Hide comment
@databus23

databus23 Sep 20, 2011

+1 for an updated moneta gem as the current 0.6 BasicFile backend is broken for :skip_expires for true

+1 for an updated moneta gem as the current 0.6 BasicFile backend is broken for :skip_expires for true

Please sign in to comment.