Update archives_controller.rb
This commit is contained in:
parent
f0ddd898b4
commit
afe7d44fae
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue