Order list by created_at desc
Add best image size in news new
This commit is contained in:
1 parent
eab82269c1
commit
7c44e94285
6 files changed
+9
-5
No files matched your search
@@ -155,7 +155,7 @@ class OrbitBackendController< ApplicationController
|
||||
|
||||
|
||||
def get_viewable(object_class)
|
||||
objects = get_objects(object_class)
|
||||
objects = get_objects(object_class).order_by(:created_at, :desc)
|
||||
Kaminari.paginate_array(objects).page(params[:page]).per(10)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user