Sha256: 886c47f92cd1aaa1f3759c352f6af81aa4f99929b647c5facb448287a22767ef

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 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

2 entries across 2 versions & 1 rubygems

Version Path
locomotive_ecommerce_plugin-1.0.1 app/controllers/locomotive/ecommerce/cart_controller.rb
locomotive_ecommerce_plugin-1.0.0 app/controllers/locomotive/ecommerce/cart_controller.rb