Sha256: 3279fb261acfd20de64ba49cae267553f38a26213231313b4f8526d496f3a53d

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

module Workarea
  decorate Storefront::Checkout::ShippingController, with: :mail_chimp do
    decorated do
      after_action :sync_with_mailchimp, only: [:update_shipping]
    end

    private

    def sync_with_mailchimp
      Workarea::MailChimp::Ecommerce::SaveCart.perform_async(current_order.id)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-mail_chimp-3.1.0 app/controllers/workarea/storefront/checkout/shipping_controller.decorator
workarea-mail_chimp-3.0.5 app/controllers/workarea/storefront/checkout/shipping_controller.decorator
workarea-mail_chimp-3.0.4 app/controllers/workarea/storefront/checkout/shipping_controller.decorator
workarea-mail_chimp-3.0.3 app/controllers/workarea/storefront/checkout/shipping_controller.decorator
workarea-mail_chimp-3.0.2 app/controllers/workarea/storefront/checkout/shipping_controller.decorator