# frozen_string_literal: true

module SolidusAvataxCertified
  module Spree
    module UserDecorator
      def self.prepended(base)
        base.belongs_to :avalara_entity_use_code
      end

      ::Spree::User.prepend self
    end
  end
end

# frozen_string_literal: true

module SolidusAvataxCertified
  module Spree
    module UserDecorator
      def self.prepended(base)
        base.belongs_to :avalara_entity_use_code, optional: true
      end

      ::Spree::User.prepend self
    end
  end
end

Fix avalara_entity_use_code being required for Spree::User
Fix avalara_entity_use_code being required for Spree::User
