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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe0558f82d8b461a8fe062f0e789535e466cacf69dcdd6abb39532bcc3f0626
4
- data.tar.gz: 51e1467d73b7d5a3044041d618a62e70276744bf9a69060982ee08fe7c7c0c7e
3
+ metadata.gz: 330e8560e071b8c2625a3ef75ad7f5a59076d708fcdeb68a20c9815d337e0020
4
+ data.tar.gz: 0d665143facaaa2db3bd1c15856a78ea5bfbf4c3d54b138def40752061c8370c
5
5
  SHA512:
6
- metadata.gz: f8c766cb25230d4087105e538e6ae5a00c14eebd7d741977a010ab55c971ebddc0fc9d39711dcfeae533f85609497c4ebefb91b63a5ea6ad7adb854a53b3f2a0
7
- data.tar.gz: 6dcaf4179fc2179ed551846a9dae3a4c32ac2adad392500f2da327211c963d39b1bcff4beedae77035206b082de6022070f6c3ac720e4451efee67f57473f10e
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
- instance = new()
9
- raise 'must respond_to price' unless instance.respond_to?(:price)
10
- raise 'must respond_to purchased_order_id' unless instance.respond_to?(:purchased_order_id)
11
-
12
- if defined?(EffectiveQbSync)
13
- raise 'must respond to qb_item_name' unless instance.respond_to?(:qb_item_name)
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.2.4'.freeze
2
+ VERSION = '4.2.5'.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.4
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-02-11 00:00:00.000000000 Z
11
+ date: 2020-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails