Sha256: 02b2207ffbaea88cce9c517f2f2a588598e6e1ba0948669fbefc24d65f3ba00a
Contents?: true
Size: 269 Bytes
Versions: 3
Compression:
Stored size: 269 Bytes
Contents
module Locomotive module Ecommerce module EcommerceCartHelper def current_user_cart(controller) user = current_user(controller) id = user == nil ? nil : user.id Cart.find_or_create(id, controller.session) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems