Update archive_files_controller.rb
This commit is contained in:
parent
b3ddc271b5
commit
cca1d0cf68
|
@ -8,6 +8,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def index
|
def index
|
||||||
|
|
||||||
if ArchiveSortOrder.count == 0
|
if ArchiveSortOrder.count == 0
|
||||||
ArchiveSortOrder.new('sort_order' => false).save
|
ArchiveSortOrder.new('sort_order' => false).save
|
||||||
end
|
end
|
||||||
|
@ -48,7 +49,9 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
||||||
render_401
|
render_401
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
def categories_order
|
||||||
|
render :text => ModuleApp.where(:key => "archive").inspect
|
||||||
|
end
|
||||||
def create
|
def create
|
||||||
@archive_file = ArchiveFile.new(archive_vars)
|
@archive_file = ArchiveFile.new(archive_vars)
|
||||||
@archive_file.create_user_id = current_user.id
|
@archive_file.create_user_id = current_user.id
|
||||||
|
|
Loading…
Reference in New Issue