From a51dec9c728d78b1613bab043176e06742103ec6 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 21 Oct 2021 15:11:47 +0200 Subject: [PATCH] removed ourdated comment --- app/models/invoice.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/invoice.rb b/app/models/invoice.rb index 3e0e6a108..1b138151c 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -129,7 +129,6 @@ class Invoice < PaymentDocument def prevent_refund? return true if user.nil? - # workaround for reservation saved after invoice if main_item.object_type == 'Reservation' && main_item.object&.reservable_type == 'Training' user.trainings.include?(main_item.object.reservable_id) else