Update archives_controller.rb

This commit is contained in:
chiu 2019-09-20 13:40:40 +08:00
parent f0ddd898b4
commit afe7d44fae
1 changed files with 3 additions and 4 deletions

View File

@ -322,10 +322,9 @@ F cats = files_by_cateogry.keys.collect do |cat|
}
end
private
def self.get_total_pages
@@total_pages
end
private
def self.get_total_pages
@@total_pages
end
def get_all_categories_id_sorted
all_categories_with_nil = ArchiveCategory.all.in(sort_number: nil)
all_categories_no_nil = ArchiveCategory.all.not_in(sort_number: nil).order_by(sort_number: 'desc')