effective_orders 4.4.6 → 4.4.7

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: a54d5be2f0c22c7b2b947e3eebda8f746025e23b743adb0b4e54a2525a83782e
4
- data.tar.gz: c245ef36019bc0515c5f2928ae9bee3e32b334b67a1bc9dae88725c424a24952
3
+ metadata.gz: e1292868ad11472eacfd9b3d03b373044bf2655c0f8d34db31819beb86a02bfb
4
+ data.tar.gz: d67604e57e3d44a36e04b15e7822a0c9495701faf5885353aa82065cd48c0755
5
5
  SHA512:
6
- metadata.gz: 2aea14e9db07efae0390ce10fa7dcbd395ce40bb5226b2cb2561dde89fc9dc8d08aa5db64ba91fb63228d9f3db2448451f9f43ae107334234ff42d7e97693eaa
7
- data.tar.gz: fa126fcbe853811ff54979016c71a57712ecb4e5d252fbd4a3280cf09ab67cb290788a1a5c6d648d31766a793aa74621a7c3f2244bf3840f018e428a2dfc55bb
6
+ metadata.gz: 4cb72e5daa0673e071399792a4b5e92d1642c107b4bee7694ace594e3db7510754b8624105caa5d629704293a2e5211a35847d145d7690269900446150177faa
7
+ data.tar.gz: 0a641944b932a2d635a063d43a52742213cb4a1717b102f96aa97c6a303e62c14780e946e34f5d4f3c7a706dc31f39dcf1c83fc8c4762e09fbcdc5d1f5a1edea
@@ -42,12 +42,16 @@ class StripeForm {
42
42
 
43
43
  let payment = this.shouldUseNewCard() ? this.useNewCard() : this.useExistingCard();
44
44
 
45
+ $.active = $.active + 1;
46
+
45
47
  payment.then((result) => {
46
48
  if (result.error) {
47
49
  this.errorPayment(result.error)
48
50
  } else if (result.paymentIntent.status == 'succeeded') {
49
51
  this.submitPayment(result.paymentIntent);
50
52
  }
53
+ }).then((result) => {
54
+ $.active = $.active - 1;
51
55
  });
52
56
  }
53
57
 
@@ -504,7 +504,7 @@ module Effective
504
504
  end
505
505
 
506
506
  def update_purchasables_purchased_order!
507
- order_items.each { |oi| oi.purchasable.update_column(:purchased_order_id, self.id) }
507
+ order_items.each { |oi| oi.purchasable&.update_column(:purchased_order_id, self.id) }
508
508
  end
509
509
 
510
510
  def run_purchasable_callbacks(name)
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.4.6'.freeze
2
+ VERSION = '4.4.7'.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.4.6
4
+ version: 4.4.7
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-04-17 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails