Update archives_controller.rb

This commit is contained in:
chiu 2019-09-20 14:06:07 +08:00
parent 31e0a645b6
commit 3d2c973850
1 changed files with 0 additions and 1 deletions

View File

@ -6,7 +6,6 @@ class ArchivesController < ApplicationController
ArchiveSortOrder.new('sort_order' => false).save
end
params = OrbitHelper.params
puts all_categories_id
if !params['title'].nil?
files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category)
categories = files_by_cateogry.keys