feature/share-libs
rb 29 lines 562 Bytes
Raw
1 ActiveAdmin.register Wallet do
2 menu priority: 2, parent: 'Users'
3 actions :all, except: %i[edit update]
4
5 index do
6 selectable_column
7 column :user do |wallet|
8 wallet.user.name.blank? ? wallet.user.email : wallet.user.name
9 end
10 column :wallet_type
11 column :pubkey
12 column :bach_token_account
13 actions
14 end
15
16 filter :user
17 filter :pubkey
18 filter :bach_token_account
19
20 show do
21 attributes_table do
22 row :user
23 row :pubkey
24 row :bach_token_account
25 row :created_at
26 row :updated_at
27 end
28 end
29 end