removed superfluous experiment function

This commit is contained in:
Edward Phillips 2019-07-13 23:46:24 +02:00
parent 0d7a42ae64
commit d9ebd07ac0

View file

@ -75,10 +75,6 @@ class Ticket < ApplicationRecord
private
def get_price_currency
'GBP'
end
def tickets_of_conference_have_same_currency
tickets = Ticket.where(conference_id: conference_id)
return if tickets.count.zero? || (tickets.count == 1 && self == tickets.first)