Update archives_controller.rb
This commit is contained in:
parent
f0ddd898b4
commit
afe7d44fae
|
@ -325,7 +325,6 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
||||||
def self.get_total_pages
|
def self.get_total_pages
|
||||||
@@total_pages
|
@@total_pages
|
||||||
end
|
end
|
||||||
private
|
|
||||||
def get_all_categories_id_sorted
|
def get_all_categories_id_sorted
|
||||||
all_categories_with_nil = ArchiveCategory.all.in(sort_number: nil)
|
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')
|
all_categories_no_nil = ArchiveCategory.all.not_in(sort_number: nil).order_by(sort_number: 'desc')
|
||||||
|
|
Loading…
Reference in New Issue