feature/share-libs
rb 38 lines 823 Bytes
Raw
1 # TODO: Fix this later
2 # rubocop:disable Metrics/BlockLength
3 ActiveAdmin.register SplitfireResult do
4 menu priority: 7, parent: 'SplitFire 🔥'
5 permit_params :song_id, :locale, :user_id
6
7 index do
8 selectable_column
9 column :source_file do |file|
10 file.source_file.blob.filename
11 end
12 column :split_audio_file do |file|
13 file.audio_file.source_file.blob.filename
14 end
15 column :onset
16 column :length
17 actions
18 end
19
20 filter :user
21 filter :created_at
22 filter :updated_at
23
24 show do
25 attributes_table do
26 row :source_file do |file|
27 file.source_file.blob.filename
28 end
29 row :split_audio_file do |file|
30 file.audio_file.source_file.blob.filename
31 end
32 row :onset
33 row :length
34 row :created_at
35 row :updated_at
36 end
37 end
38 end