Update archive_files_controller.rb

This commit is contained in:
chiu 2019-09-18 19:30:40 +08:00
parent b3ddc271b5
commit cca1d0cf68
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
end
end
def index
if ArchiveSortOrder.count == 0
ArchiveSortOrder.new('sort_order' => false).save
end
@ -48,7 +49,9 @@ class Admin::ArchiveFilesController < OrbitAdminController
render_401
end
end
def categories_order
render :text => ModuleApp.where(:key => "archive").inspect
end
def create
@archive_file = ArchiveFile.new(archive_vars)
@archive_file.create_user_id = current_user.id