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: '058d8f2f4dfd029a82fc4d3e06ab32ea68c300702a4a2b6469b5a2f4277d71ab'
4
- data.tar.gz: de2f36d04bf56a5c6bc065855337d18f91bf1418270e45eb282c99e712307a0c
3
+ metadata.gz: 72c08933d3c22c22f82ef92827533f3f25c7c5190560490c4c31e76ed95d126e
4
+ data.tar.gz: f3b46aad0378283ab3ac51f490ede086b4f71efcf5a254f9edbd11faf3fd3d09
5
5
  SHA512:
6
- metadata.gz: f34000e873ff1e28c311042e59e106fc033a6510e67e242c2c1bea707fe10b98a16ffe011ae8f23b64bcce1caf20521b979ca0c9a76615095df6408d14ff8738
7
- data.tar.gz: '092d24195fb74834d656bacfd235a9768e66063bb8cdc7df0c6ada54b1e8c36872a889f464c8b5a4c1a996da880b59aa64dd798305232514eda75684dcc0a919'
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.2.2'.freeze
2
+ VERSION = '4.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: 4.2.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-09-27 00:00:00.000000000 Z
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