Feature: Rewamp super admin dashboard (#882)

This commit is contained in:
Sojan Jose 2020-05-24 22:44:26 +05:30 committed by GitHub
parent e49a200ee0
commit d8d14fc4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 2190 additions and 79 deletions

View file

@ -13,4 +13,11 @@ class SuperAdmin::ApplicationController < Administrate::ApplicationController
# def records_per_page
# params[:per_page] || 20
# end
def order
@order ||= Administrate::Order.new(
params.fetch(resource_name, {}).fetch(:order, 'id'),
params.fetch(resource_name, {}).fetch(:direction, 'desc')
)
end
end