[refactor] Clean up unused code
This commit is contained in:
parent
189c2ec75f
commit
7d70462542
2 changed files with 3 additions and 8 deletions
|
|
@ -110,11 +110,6 @@ class TicketPurchase < ApplicationRecord
|
||||||
errors.add(:quantity, 'cannot be greater than one for registration tickets.')
|
errors.add(:quantity, 'cannot be greater than one for registration tickets.')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# def has_registration_ticket_for?(conference)
|
|
||||||
# # BUG: ticket_purchase has only one ticket?
|
|
||||||
# ticket.try(:registration_ticket?)
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue