effective_orders 4.5.11 → 4.5.12

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: f1e00998a7bf70939f686faf24ecf1ad4248f232bca18bfd1abb1074cadf4881
4
- data.tar.gz: 2ee502e056f89522b4a88480fe2d4a8995a70d6bcbeb7abecfd41a09a85f6862
3
+ metadata.gz: 3fa2dd840713f7c176fa7a2a746da49c7ba5ea5db34d07835271706db6abd6e5
4
+ data.tar.gz: 05d9a0feeecb92a6c97c9d2e94f3b9bbf7c2de266b7c05370d084a678ba49b84
5
5
  SHA512:
6
- metadata.gz: 0f0b25a0e32aea32cd5b66a521509181b347ce58c4a6e858064de8fc7192796456d1ac49c5e96515a8b442d8958e7398490ffbc165fb4cc853c83ab1650eba8b
7
- data.tar.gz: 6ef0bedaa012be759e8645296eb6c0aae894b815c92ec7964e5d6dc712eb9139bab52c0d9a9bcee0f661a174fcb7c8c9d1754e5a9f817742020f68b9d07f7043
6
+ metadata.gz: 122cba6ef5b077211c21da55afa01b5771e2185cd0b5833073abf2ec291112c53bb30cd65d4a884d58a39d1b1f770343c0fd8437e45d04e3397ed30bb4988d41
7
+ data.tar.gz: 3fae2d2aa9e849e7b431ddd4f62238a36705bf5c624d9ebb88b7322df5bc797a742839b0ecd22fe3906c11bfd1aa678d477672c94c53d9835e13a5cb4a23d02b
@@ -17,7 +17,7 @@ module EffectiveSubscriptionsHelper
17
17
  raise 'form object must be an acts_as_subscribable object' unless subscribable.respond_to?(:subscripter)
18
18
 
19
19
  subscripter = subscribable.subscripter
20
- raise 'subscribable.subscribable_buyer must match current_user' unless subscripter.user == current_user
20
+ # raise 'subscribable.subscribable_buyer must match current_user' unless subscripter.user == current_user
21
21
 
22
22
  render('effective/subscripter/form', subscripter: subscripter)
23
23
  end
@@ -31,7 +31,7 @@ module Effective
31
31
  end
32
32
 
33
33
  def customer
34
- @customer ||= Effective::Customer.deep.where(user: user).first_or_initialize
34
+ @customer ||= Effective::Customer.deep.where(user: subscribable&.subscribable_buyer || user).first_or_initialize
35
35
  end
36
36
 
37
37
  def current_user=(user)
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.5.11'.freeze
2
+ VERSION = '4.5.12'.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.5.11
4
+ version: 4.5.12
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: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2020-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
- rubygems_version: 3.1.2
271
+ rubygems_version: 3.1.4
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Quickly build an online store with carts, orders, automatic email receipts