Feature: Rewamp super admin dashboard (#882)
This commit is contained in:
parent
e49a200ee0
commit
d8d14fc4a4
63 changed files with 2190 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue