effective_orders 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/cart.rb +2 -1
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 031a1810c8fc9ae6aa2909a0ee16cf73ad9b90b6a0aee17a353aafa033a39d7a
|
4
|
+
data.tar.gz: 652fad3647b97f20d0f950fa9da4d989111eee33f98d5110ce9b70aa421208e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1c8c8e6b0554a22e6a091ab4ba206a33e66ef775172961df346b10ac5898b0d16a04d7d1469cef3dc3bc77ec5b8137e6cb2b349c690eb46c67eb0d4c9bf78cc
|
7
|
+
data.tar.gz: c4187ce976881522ac9c45448c0c2f58cb8cb18211f8254f33e8e8dc1e9bfcee075e61e58e0dab36a375506f450665bb80888ae1a7b95a3e561754b35ea9336b
|
@@ -2,7 +2,8 @@ module Effective
|
|
2
2
|
class Cart < ActiveRecord::Base
|
3
3
|
self.table_name = EffectiveOrders.carts_table_name.to_s
|
4
4
|
|
5
|
-
|
5
|
+
# Optional. We want non-logged-in users to have carts too.
|
6
|
+
belongs_to :user, optional: true
|
6
7
|
has_many :cart_items, -> { includes(:purchasable).order(:updated_at) }, dependent: :delete_all, class_name: 'Effective::CartItem'
|
7
8
|
|
8
9
|
accepts_nested_attributes_for :cart_items
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|