effective_orders 4.2.4 → 4.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/acts_as_purchasable.rb +8 -6
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330e8560e071b8c2625a3ef75ad7f5a59076d708fcdeb68a20c9815d337e0020
|
4
|
+
data.tar.gz: 0d665143facaaa2db3bd1c15856a78ea5bfbf4c3d54b138def40752061c8370c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107af4d3f41950d0f2599a9cb2b2b6b2ede5d8c35db6dce6dd25402d98eddb47dfdccd238a71487b64db62a84cebc46b0be70f63f6ce0ce8abb30b017f5fbeb5
|
7
|
+
data.tar.gz: ab98527b0806e1c461f78dce2b93c1e68964f1e373c87d34bb0bc167b1048598777c8c0bb31caefd95b18bbb248f66917ea80f1ba9724e38455eb2a397f05977
|
@@ -5,12 +5,14 @@ module ActsAsPurchasable
|
|
5
5
|
def acts_as_purchasable(*options)
|
6
6
|
@acts_as_purchasable = options || []
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
if table_exists?
|
9
|
+
instance = new()
|
10
|
+
raise 'must respond_to price' unless instance.respond_to?(:price)
|
11
|
+
raise 'must respond_to purchased_order_id' unless instance.respond_to?(:purchased_order_id)
|
12
|
+
|
13
|
+
if defined?(EffectiveQbSync)
|
14
|
+
raise 'must respond to qb_item_name' unless instance.respond_to?(:qb_item_name)
|
15
|
+
end
|
14
16
|
end
|
15
17
|
|
16
18
|
include ::ActsAsPurchasable
|
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.5
|
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-
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|