Module: SolidusActAsTenant::Spree::VariantDecorator

Defined in:
app/decorators/spree/variant_decorator.rb

Instance Method Summary collapse

Instance Method Details

#shipping_categoryObject



13
14
15
16
17
# File 'app/decorators/spree/variant_decorator.rb', line 13

def shipping_category
  super
rescue NoMethodError
  product && product_shipping_category
end

#shipping_category_idObject

Fixes no method error related to validations added through acts_as_tenant



7
8
9
10
11
# File 'app/decorators/spree/variant_decorator.rb', line 7

def shipping_category_id
  super
rescue NoMethodError
  product && product_shipping_category_id
end