fixed typo in destroying

This commit is contained in:
Rishabh Saxena 2016-03-10 03:18:24 +05:30
parent 892c15b64a
commit 5ad99e1cd8

View file

@ -87,7 +87,7 @@ class ConferenceRegistrationsController < ApplicationController
def destroy def destroy
tickets_purchased = TicketPurchase.find_by(conference_id: @registration.conference_id) tickets_purchased = TicketPurchase.find_by(conference_id: @registration.conference_id)
if @registration.destroy if @registration.destroy
ticket_purchase.destroy tickets_purchased.destroy
redirect_to root_path, redirect_to root_path,
notice: "You are not registered for #{@conference.title} anymore!" notice: "You are not registered for #{@conference.title} anymore!"
else else