summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mokhan@users.noreply.github.com>2015-05-25 23:02:18 -0600
committermo khan <mokhan@users.noreply.github.com>2015-05-25 23:02:18 -0600
commitf30de01e6b47a627aff4bf1413dcfe6bc0425f07 (patch)
tree9bc7981ee0cd508af70d4e6bb57e776f4b98ba5c
parente1d5a8e432708884c9a99a00dd898507fafa20cb (diff)
parent5e4abaab3ad1790c524eb3e1b6f2bfaa26a1e832 (diff)
Merge pull request #1 from mfrank01/storage
Storage change
-rw-r--r--lib/tfa/storage.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tfa/storage.rb b/lib/tfa/storage.rb
index 1586278..1424315 100644
--- a/lib/tfa/storage.rb
+++ b/lib/tfa/storage.rb
@@ -2,8 +2,8 @@ module TFA
class Storage
include Enumerable
- def initialize(filename:)
- @storage = PStore.new(File.join(Dir.home, ".#{filename}.pstore"))
+ def initialize(options)
+ @storage = PStore.new(File.join(Dir.home, ".#{options[:filename]}.pstore"))
end
def each