diff --git a/app/models/payment.rb b/app/models/payment.rb index 3dda1db8..47e407b7 100644 --- a/app/models/payment.rb +++ b/app/models/payment.rb @@ -214,7 +214,6 @@ def refundable? received? end - # XXX test # @deprecated method for converting old status def convert_old_status! @matrix ||= { 'N' => 'new', 'P' => 'in progress', 'R' => 'received', 'F' => 'refunded' } diff --git a/app/models/ticket_request.rb b/app/models/ticket_request.rb index 4f79b5db..db08479e 100644 --- a/app/models/ticket_request.rb +++ b/app/models/ticket_request.rb @@ -135,7 +135,7 @@ def csv_columns belongs_to :user, inverse_of: :ticket_requests belongs_to :event, inverse_of: :ticket_requests, touch: true - has_one :payment, inverse_of: :ticket_request, dependent: :destroy + has_one :payment, inverse_of: :ticket_request has_many :ticket_request_event_addons, dependent: :destroy has_many :event_addons, through: :ticket_request_event_addons