Update archive_files_controller.rb
This commit is contained in:
parent
b3ddc271b5
commit
cca1d0cf68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue