Sha256: 417eb298aaee9591d3886d344116dbc83e564c594f6dc766145c0f4f0da99397

Contents?: true

Size: 217 Bytes

Versions: 5

Compression:

Stored size: 217 Bytes

Contents

Spree::Price.class_eval do
  after_commit :mailchimp_sync

  private
  def mailchimp_sync
    if self.variant
      SolidusMailchimpSync::VariantSynchronizer.new(self.variant).auto_sync(force: true)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_mailchimp_sync-1.0.0.beta05 app/solidus_decorators/spree/price_decorator.rb
solidus_mailchimp_sync-1.0.0.beta04 app/solidus_decorators/spree/price_decorator.rb
solidus_mailchimp_sync-1.0.0.beta03 app/solidus_decorators/spree/price_decorator.rb
solidus_mailchimp_sync-1.0.0.beta02 app/solidus_decorators/spree/price_decorator.rb
solidus_mailchimp_sync-1.0.0.beta01 app/solidus_decorators/spree/price_decorator.rb