From 4304104fc4ecb66d42f9b600f78d3e5399de4325 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Tue, 24 Mar 2020 23:55:11 +0200 Subject: [PATCH] Use root for parent ID for dirs --- app/controllers/directories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/directories_controller.rb b/app/controllers/directories_controller.rb index 2008329..13239c8 100644 --- a/app/controllers/directories_controller.rb +++ b/app/controllers/directories_controller.rb @@ -6,7 +6,7 @@ class DirectoriesController < ApplicationController @files = @directory.files render partial: 'data_files/list', layout: true else - @directories = Directory.ordered.filtered.where(parent_id: 1) + @directories = Directory.ordered.filtered.where(parent_id: Directory::ROOT) end end