Use root for parent ID for dirs

This commit is contained in:
Ari Timonen 2020-03-24 23:55:11 +02:00
parent 93557dfa67
commit 4304104fc4

View file

@ -6,7 +6,7 @@ class DirectoriesController < ApplicationController
@files = @directory.files @files = @directory.files
render partial: 'data_files/list', layout: true render partial: 'data_files/list', layout: true
else else
@directories = Directory.ordered.filtered.where(parent_id: 1) @directories = Directory.ordered.filtered.where(parent_id: Directory::ROOT)
end end
end end