Sha256: c88f0f3076f9754d553a734fba2be1f928858a15a1c882e0c82488ac53dca314

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

module Locomotive
  module Ecommerce
    class CartController < ::Locomotive::Ecommerce::ApplicationController
      def update
        @cart = Cart.find(params[:id])
        @cart.update_from_params(params)
        flash[:success] = 'Updated cart'
        redirect_to cart_path
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
locomotive_ecommerce_plugin-1.0.6 app/controllers/locomotive/ecommerce/cart_controller.rb
locomotive_ecommerce_plugin-1.0.5 app/controllers/locomotive/ecommerce/cart_controller.rb
locomotive_ecommerce_plugin-1.0.4 app/controllers/locomotive/ecommerce/cart_controller.rb