Update archive_files_controller.rb

This commit is contained in:
chiu 2019-09-16 20:16:53 +08:00
parent fe3e9c25b1
commit 0948362b09
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,8 @@
class Admin::ArchiveFilesController < OrbitAdminController
def show
module_pages = Page.where(:module => archive).collect{|p| [p.name,p.url] }
puts module_pages
end
def index
if ArchiveSortOrder.count == 0
ArchiveSortOrder.new('sort_order' => false).save