diff --git a/app/admin/members.rb b/app/admin/members.rb index 0a41da07..8036ffd8 100644 --- a/app/admin/members.rb +++ b/app/admin/members.rb @@ -18,7 +18,7 @@ :register_id, group_ids: [], group_members_attributes: [[%i[id assignment]]], - member_static_slots_attributes: [:id, :static_slot_id, :member_id, :_destroy] + member_static_slots_attributes: %i[id static_slot_id member_id _destroy] menu if: proc { authorized? :index, %i[active_admin Member] } # display menu according to ActiveAdmin::Policy @@ -130,7 +130,7 @@ action_item :enroll_static_members, only: :index do link_to t('.enroll_static_members'), enroll_static_members_admin_members_path, - data: { confirm: t('.confirm_enroll_static_members') }, method: :post + data: {confirm: t('.confirm_enroll_static_members')}, method: :post end action_item :remove_static_slots_of_a_member, only: %i[show edit] do