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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fa2dd840713f7c176fa7a2a746da49c7ba5ea5db34d07835271706db6abd6e5
|
4
|
+
data.tar.gz: 05d9a0feeecb92a6c97c9d2e94f3b9bbf7c2de266b7c05370d084a678ba49b84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
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.
|
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
|