From c3d6b2280f29637729c0c7bfbf8c28dbcb883b02 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 9 May 2023 13:24:28 +0100 Subject: [PATCH] Update reference to removed method --- app/models/invoice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/invoice.rb b/app/models/invoice.rb index 8f90a05eae..65b20091a3 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -10,6 +10,6 @@ class Invoice < ApplicationRecord end def serialize_order - self.data ||= order.serialize_for_invoice + self.data ||= Invoice::OrderSerializer.new(order).serializable_hash end end