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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fb16bce7ab1576f59980e3774ca39033738a7fb1f5dfc26065ff037bdab48c7
4
- data.tar.gz: 76b131fd50900070e6ef39214ef833ba5af31106092a0451f7a8bee6f6e7cb40
3
+ metadata.gz: 031a1810c8fc9ae6aa2909a0ee16cf73ad9b90b6a0aee17a353aafa033a39d7a
4
+ data.tar.gz: 652fad3647b97f20d0f950fa9da4d989111eee33f98d5110ce9b70aa421208e0
5
5
  SHA512:
6
- metadata.gz: a012457f0896f338f98b164a393d1bb21e83f7cbaa55516b0d1d015277ca2fde3b82b988e933c3905b3447fdc7e2c6edbbcc7610292c12810fc39bb1f9922f37
7
- data.tar.gz: 78a7aaa52c8b208f13229f5e969f6acf034e7086104246690d44dccdb9c0415a732eb6673b131c5d49137557e8de0edae720d928c3ee934c7e5b3638e488af42
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
- belongs_to :user # Optional. We want non-logged-in users to have carts too.
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '3.2.2'.freeze
2
+ VERSION = '3.2.3'.freeze
3
3
  end
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.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-07 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails