Skip to content

Commit

Permalink
Fix BasicFile#[] when :skip_expire is true
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Katz <wycats@gmail.com>
  • Loading branch information
jarib authored and wycats committed Aug 24, 2009
1 parent f403660 commit 5c2abf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/moneta/basic_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def [](key)
else
delete!(key)
end
else
data
end
end
end
Expand Down

2 comments on commit 5c2abf5

@yfeldblum
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@databus23
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+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.