Update archive_files_controller.rb

This commit is contained in:
chiu 2019-09-16 20:24:31 +08:00
parent ce16c481fe
commit 74301f69a6
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class Admin::ArchiveFilesController < OrbitAdminController
def show
module_pages = Page.where(:module => 'archive').collect{|p| [p.name,p.url] }
puts module_pages
redirect_to '/' + I18n.locale.to_s + module_pages
end
def index
if ArchiveSortOrder.count == 0