push
github
4 of 14 new or added lines in 1 file covered. (28.57%)
1906 of 2531 relevant lines covered (75.31%)
8.66 hits per line
|
ActiveAdmin.register Event do |
1✔ |
|
Event.attribute_names.each do |attribute| |
1✔ |
|
filter attribute.to_sym |
59✔ |
4 |
end
|
|
5 |
|
|
|
index do
|
1✔ |
NEW
|
column :date
|
× |
NEW
|
column "Tipo evento", :event_type do |event| |
× |
NEW
|
event.event_type&.name |
× |
10 |
end
|
|
NEW
|
column "Detalles", :event_type do |event| |
× |
NEW
|
"#{event.country.iso_code.downcase} #{event.city}"
|
× |
13 |
end
|
|
NEW
|
column :draft
|
× |
NEW
|
column :cancelled
|
× |
NEW
|
column :is_sold_out
|
× |
NEW
|
actions defaults: false do |event| |
× |
NEW
|
link_to 'Edit', edit_event_path(event)
|
× |
19 |
end
|
|
20 |
end
|
|
21 |
end
|