diff --git a/app/controllers/api/members_controller.rb b/app/controllers/api/members_controller.rb index 75e01f215..0fd7dc5fd 100644 --- a/app/controllers/api/members_controller.rb +++ b/app/controllers/api/members_controller.rb @@ -99,7 +99,7 @@ class API::MembersController < API::ApiController # export reservations def export_reservations authorize :export - @reservations = Reservation.all.includes(:slots, :user => [:profile]) + @reservations = Reservation.all.includes(:slots, :reservable, :user => [:profile]) render xlsx: 'export_reservations.xlsx', filename: "export_reservations.xlsx" end