Sha256: 8341c5ab886edc1957b920533f83899219ada259afd770de295839a4335a534d
Contents?: true
Size: 690 Bytes
Versions: 3
Compression:
Stored size: 690 Bytes
Contents
module Spree Variant.class_eval do has_many :suppliers, through: :supplier_variants has_many :supplier_variants # before_create :populate_for_suppliers # private # durably_decorate :create_stock_items, mode: 'soft', sha: '98704433ac5c66ba46e02699f3cf03d13d4f1281' do # StockLocation.all.each do |stock_location| # if stock_location.supplier_id.blank? || self.suppliers.pluck(:id).include?(stock_location.supplier_id) # stock_location.propagate_variant(self) if stock_location.propagate_all_variants? # end # end # end # def populate_for_suppliers # self.suppliers = self.product.suppliers # end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_drop_ship-3.1.3 | app/models/spree/variant_decorator.rb |
spree_drop_ship-3.1.2 | app/models/spree/variant_decorator.rb |
spree_drop_ship-3.1.1 | app/models/spree/variant_decorator.rb |