improve user admin view

This commit is contained in:
João Geonizeli
2022-08-10 23:39:59 +00:00
parent 8150183ecf
commit 8c7e168d91
2 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,20 @@ ActiveAdmin.register User do
actions
end
show do
attributes_table do
row :name
row :email
row :roles do |user|
user.roles.map { |role| role.text }.join(', ')
end
row :created_at
row :updated_at
row :deleted_at
end
active_admin_comments
end
filter :email
filter :name
filter :created_at

View File

@@ -2,4 +2,4 @@ pt-BR:
attributes:
created_at: Criado em
updated_at: Atualizado em
deleted_at: Deletado em
deleted_at: Excluído em