Sha256: 1d424b85a8237410ec377d4874fb58d92679c7dd2532bfc6d8aa6573e0262ce2
Contents?: true
Size: 517 Bytes
Versions: 5
Compression:
Stored size: 517 Bytes
Contents
Spree::Image.class_eval do after_commit :mailchimp_sync private def mailchimp_sync if self.viewable && self.viewable.is_a?(Spree::Variant) if self.viewable.is_master? # Need to sync all variants. SolidusMailchimpSync::ProductSynchronizer.new(self.viewable.product).auto_sync(force: true) else # image just on this variant, just need to sync this one. SolidusMailchimpSync::VariantSynchronizer.new(self.variant).auto_sync(force: true) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems