Sha256: 37e8265e6961eab1657db0f6250867b65dfca3165e2742079e5d27316741e0a7
Contents?: true
Size: 264 Bytes
Versions: 1
Compression:
Stored size: 264 Bytes
Contents
class Plugins::Ecommerce::UserCartService def initialize(site, user) @site = site @user = user end attr_reader :site, :user def get_cart site.carts.set_user(user).active_cart.first_or_create(name: "Cart by #{user.id}").decorate end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-1.2 | app/services/plugins/ecommerce/user_cart_service.rb |