Sha256: a4c078447720109362f3f2d806dd42a87a3991fec924a6af6b5ccfeb4d2aa9aa
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true module SolidusActAsTenant module Spree module VariantDecorator # Fixes no method error related to validations added through acts_as_tenant def shipping_category_id super rescue NoMethodError product && product_shipping_category_id end def shipping_category super rescue NoMethodError product && product_shipping_category end ::Spree::Variant.prepend(self) end end end
Version data entries
3 entries across 3 versions & 1 rubygems