mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Use root for parent ID for dirs
This commit is contained in:
parent
93557dfa67
commit
4304104fc4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue