Add pagination at backend index page
This commit is contained in:
1 parent
f4d405979b
commit
d9194eae26
2 files changed
+8
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user