Add pagination at backend index page

This commit is contained in:
manson committed 2014-07-04 15:54:11 +08:00
1 parent f4d405979b
commit d9194eae26
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ class ArchiveFile
field :rss2_sn
# scope :can_display,where(is_hidden: false)
scope :can_display, ->{where(is_hidden: false).asc(:sort_number, :title).desc(:is_top)}
scope :can_display, ->{where(is_hidden: false).order_by(:is_top=>-1, :sort_number=>1, :title=>1)}
# belongs_to :archive_file_category