Refactor courses

This commit is contained in:
2015-09-04 13:45:37 -04:00
parent 022620e4ab
commit 6f1427dc21
25 changed files with 339 additions and 361 deletions

View File

@@ -27,7 +27,7 @@ module AttachmentsHelper
end
def nest_path(items, paths, from, to, level)
result = {}
result = { }
base = from - 1
base = base + 1 while base+1 <= to and paths[base+1][level].nil?