Skip to content

Commit

Permalink
Merge pull request #32 from rubydevi/f/iterations
Browse files Browse the repository at this point in the history
Added name param to reservations controller
  • Loading branch information
RileyManda authored Nov 8, 2023
2 parents f48bd13 + 27eb9ee commit 1c3ba45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/reservations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app/controllers/reservations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c3ba45

Please sign in to comment.