Sha256: f98c870eebf286a99da04a4d19df565d379b2c2312f92e42abe9b823425a8dad

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module Workarea
  decorate Storefront::CartsController, with: :shipping_estimation do
    decorated do
      before_action :set_shipping_estimation_address, only: :show
    end

    private

    def set_shipping_estimation_address
      SetShippingEstimationAddress.new(
        current_checkout,
        current_location,
        current_user
      ).perform
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-shipping_estimation-1.1.3 app/controllers/workarea/storefront/carts_controller.decorator
workarea-shipping_estimation-1.1.2 app/controllers/workarea/storefront/carts_controller.decorator