Small code layout improvement.

This commit is contained in:
Martin Edenhofer 2015-05-06 15:06:50 +02:00
parent a960793e72
commit 408bade61b

View file

@ -54,7 +54,7 @@ class Store::Provider::File
def self.get_locaton(sha) def self.get_locaton(sha)
# generate directory # generate directory
base = Rails.root.to_s + '/storage/fs/' base = "#{Rails.root}/storage/fs/"
parts = sha.scan(/.{1,4}/) parts = sha.scan(/.{1,4}/)
path = parts[ 1..10 ].join('/') + '/' path = parts[ 1..10 ].join('/') + '/'
file = parts[ 11..parts.count ].join('') file = parts[ 11..parts.count ].join('')