feat(manager): add id column to use it as replacement for created_at sorts
This commit is contained in:
parent
e60c92957d
commit
0c3cc31fcd
3 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ class AdministrateurDashboard < Administrate::BaseDashboard
|
||||||
# By default, it's limited to four items to reduce clutter on index pages.
|
# By default, it's limited to four items to reduce clutter on index pages.
|
||||||
# Feel free to add, remove, or rearrange items.
|
# Feel free to add, remove, or rearrange items.
|
||||||
COLLECTION_ATTRIBUTES = [
|
COLLECTION_ATTRIBUTES = [
|
||||||
|
:id,
|
||||||
:user,
|
:user,
|
||||||
:created_at,
|
:created_at,
|
||||||
:procedures,
|
:procedures,
|
||||||
|
|
|
@ -23,6 +23,7 @@ class InstructeurDashboard < Administrate::BaseDashboard
|
||||||
# By default, it's limited to four items to reduce clutter on index pages.
|
# By default, it's limited to four items to reduce clutter on index pages.
|
||||||
# Feel free to add, remove, or rearrange items.
|
# Feel free to add, remove, or rearrange items.
|
||||||
COLLECTION_ATTRIBUTES = [
|
COLLECTION_ATTRIBUTES = [
|
||||||
|
:id,
|
||||||
:user,
|
:user,
|
||||||
:created_at
|
:created_at
|
||||||
].freeze
|
].freeze
|
||||||
|
|
|
@ -23,6 +23,7 @@ class UserDashboard < Administrate::BaseDashboard
|
||||||
# By default, it's limited to four items to reduce clutter on index pages.
|
# By default, it's limited to four items to reduce clutter on index pages.
|
||||||
# Feel free to add, remove, or rearrange items.
|
# Feel free to add, remove, or rearrange items.
|
||||||
COLLECTION_ATTRIBUTES = [
|
COLLECTION_ATTRIBUTES = [
|
||||||
|
:id,
|
||||||
:email,
|
:email,
|
||||||
:created_at
|
:created_at
|
||||||
].freeze
|
].freeze
|
||||||
|
|
Loading…
Add table
Reference in a new issue