Missing .to_s added.
Index/partition keys can now be non-string without build-time error.
This commit is contained in:
parent
66fcfb76a1
commit
027c7598eb
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user