Corrected with rubocop cop 'Style/SpaceInsideRangeLiteral'.

This commit is contained in:
Thorsten Eckel 2015-05-01 14:34:11 +02:00
parent 68a6b850a5
commit 33d447cb76

View file

@ -24,8 +24,8 @@ class Store::Provider::File
# generate directory
base = Rails.root.to_s + '/storage/fs/'
parts = sha.scan(/.{1,4}/)
path = parts[ 1 .. 10 ].join('/') + '/'
file = parts[ 11 .. parts.count ].join('')
path = parts[ 1..10 ].join('/') + '/'
file = parts[ 11..parts.count ].join('')
location = "#{base}/#{path}"
# create directory if not exists