effective_orders 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72c08933d3c22c22f82ef92827533f3f25c7c5190560490c4c31e76ed95d126e
|
4
|
+
data.tar.gz: f3b46aad0378283ab3ac51f490ede086b4f71efcf5a254f9edbd11faf3fd3d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5831102b9a19e1b27899d269857393e28332a50b90c6bfdd2c959ad387e61ce933170095b4feee098afc3c791c68fd7e9cb2323b33c69dbec01338d385db4152
|
7
|
+
data.tar.gz: fa3543aac3d26a7682b1a2ba58eaff35d78c0080bde4f0414a0c96a87dc261173abbe81f97c88d60c6828b783a40c05a3bda657aec3773c4178515f73243a937
|
@@ -2,7 +2,7 @@ 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
|
+
belongs_to :user, optional: true # Optional. We want non-logged-in users to have carts too.
|
6
6
|
has_many :cart_items, -> { order(:id) }, dependent: :delete_all, class_name: 'Effective::CartItem'
|
7
7
|
|
8
8
|
accepts_nested_attributes_for :cart_items
|
File without changes
|
@@ -2,8 +2,6 @@ module EffectiveOrders
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
engine_name 'effective_orders'
|
4
4
|
|
5
|
-
config.autoload_paths += Dir["#{config.root}/app/models/**/"]
|
6
|
-
|
7
5
|
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
|
8
6
|
initializer 'effective_orders.active_record' do |app|
|
9
7
|
ActiveSupport.on_load :active_record do
|
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: 4.2.
|
4
|
+
version: 4.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: 2019-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -162,10 +162,10 @@ files:
|
|
162
162
|
- app/models/effective/order_item.rb
|
163
163
|
- app/models/effective/product.rb
|
164
164
|
- app/models/effective/providers/stripe_charge.rb
|
165
|
+
- app/models/effective/sold_out_validator.rb
|
165
166
|
- app/models/effective/subscripter.rb
|
166
167
|
- app/models/effective/subscription.rb
|
167
168
|
- app/models/effective/tax_rate_calculator.rb
|
168
|
-
- app/models/validators/effective/sold_out_validator.rb
|
169
169
|
- app/views/admin/customers/_actions.html.haml
|
170
170
|
- app/views/admin/customers/index.html.haml
|
171
171
|
- app/views/admin/customers/show.html.haml
|