Merge b9614a8212 into c97a774579
This commit is contained in:
commit
e6ba8d4a43
1 changed files with 2 additions and 0 deletions
|
|
@ -83,7 +83,9 @@ class ConferenceRegistrationsController < ApplicationController
|
|||
end
|
||||
|
||||
def destroy
|
||||
tickets_purchased = TicketPurchase.find_by(conference_id: @registration.conference_id)
|
||||
if @registration.destroy
|
||||
ticket_purchase.destory
|
||||
redirect_to root_path,
|
||||
notice: "You are not registered for #{@conference.title} anymore!"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue