From 27eb9eec4f55f1b9af70e20f18725a4022752361 Mon Sep 17 00:00:00 2001 From: RileyManda Date: Wed, 8 Nov 2023 12:23:19 +0200 Subject: [PATCH] Added name param to reservations controller --- app/controllers/api/v1/reservations_controller.rb | 2 +- app/controllers/reservations_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/reservations_controller.rb b/app/controllers/api/v1/reservations_controller.rb index 3382350..3ba0360 100644 --- a/app/controllers/api/v1/reservations_controller.rb +++ b/app/controllers/api/v1/reservations_controller.rb @@ -48,6 +48,6 @@ def set_reservation # Only allow a list of trusted parameters through. def reservation_params params.require(:reservation).permit(:reserved_date, :start_time, :end_time, :total_cost, :start_location, - :destination, :user_id, :aeroplane_id) + :destination, :user_id, :aeroplane_id, :name) end end diff --git a/app/controllers/reservations_controller.rb b/app/controllers/reservations_controller.rb index 37b980a..6f43c94 100644 --- a/app/controllers/reservations_controller.rb +++ b/app/controllers/reservations_controller.rb @@ -48,6 +48,6 @@ def set_reservation # Only allow a list of trusted parameters through. def reservation_params params.require(:reservation).permit(:reserved_date, :start_time, :end_time, :total_cost, :start_location, - :destination, :user_id, :aeroplane_id) + :destination, :user_id, :aeroplane_id, :name) end end