Replace some '/' by File.join

This commit is contained in:
Christian Mehlmauer
2014-05-31 15:59:05 +02:00
parent 34ba6a86c9
commit 6b8436f825
2 changed files with 29 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ class CacheFileStore
# YAML is Human Readable, contrary to Marshal which store in a binary format
# Marshal does not need any "require"
def initialize(storage_path, serializer = Marshal)
@storage_path = File.expand_path(storage_path + '/' + storage_dir)
@storage_path = File.expand_path(File.join(storage_path, storage_dir))
@serializer = serializer
# File.directory? for ruby <= 1.9 otherwise,