Missing .to_s added.

Index/partition keys can now be non-string without build-time error.
This commit is contained in:
Luka Vandervelden 2018-12-17 00:49:45 +09:00
parent 66fcfb76a1
commit 027c7598eb

View File

@ -58,7 +58,7 @@ class FS::Hash(K, V)
@partitions.each do |index| @partitions.each do |index|
index_key = index.key_proc.call value index_key = index.key_proc.call value
symlink = file_path(key, index.name, index_key) symlink = file_path(key.to_s, index.name, index_key)
Dir.mkdir_p File.dirname symlink Dir.mkdir_p File.dirname symlink