Skip to content

Commit

Permalink
Update keyset.rb
Browse files Browse the repository at this point in the history
fix issue defconomicron#1
  • Loading branch information
PanfilovDenis committed Apr 15, 2014
1 parent 04145d3 commit cff6239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/keyset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(store, store_key)


if existing=@store.send(:read_entry, @store_key, {})
super(YAML.load(existing.value))
super(YAML.load(existing.to_s))
else
super([])
end
Expand All @@ -31,7 +31,7 @@ def delete_with_cache(value)
alias_method_chain :delete, :cache

def clear_with_cache
clear_without_cache(value)
clear_without_cache
ensure
store
end
Expand Down

0 comments on commit cff6239

Please sign in to comment.