Require localized_number in Payment class

There seems to be some contexts (jobs for subscriptions) where the Payment class loads but LocalizedNumber is an undefined constant. It lives in the /lib directory so it's not auto-loaded.
This commit is contained in:
Matt-Yorkley
2023-06-09 18:16:37 +01:00
committed by Jean-Baptiste Bellet
parent 5d43285834
commit ed4ab30f6c

View File

@@ -1,5 +1,7 @@
# frozen_string_literal: true
require "spree/localized_number"
module Spree
class Payment < ApplicationRecord
include Spree::Payment::Processing