effective_resources 2.26.3 → 2.26.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: 832cce1bc8eec0595dc7f02ca59d5a395a46422ddfd8de4dc0bffd95c56a25a8
4
- data.tar.gz: d9b75daec18de0f827ad15c617688dd1ff8814c2e8395c8c5fcf788ae8cc27c7
3
+ metadata.gz: 3bddc24c74eb0d2e435dde9fd9db596d4bd9f84712122d5b29193164d0e3074d
4
+ data.tar.gz: b70b54824daeaa93e75b4fdcfccc0ba6c19a3506ce50938645b1825175aa8f7f
5
5
  SHA512:
6
- metadata.gz: 7b27bcd49c2f57a27697e0333842e6176a4ef7bcf2a0d055d55ff9e16be950d35baa330e81a8dffb3b8ae54300267ef517575ae3236ec33614c2864d433a729a
7
- data.tar.gz: 11c948c3e725355cf2c78dab2bb9ea8789badece24135cbb332d4819e2683b908400219a42d6b1bc22254d7a5416ec2d2923f97f6565cb83d92182221cee82ae
6
+ metadata.gz: 752c5d16966bcce3f11a685709fbbbb913f7c9169b4a3b796211ac2f0b6ea4bebfc8c24450a1faaa14b9e2c1490c6e3f4333914c078f1f71769dabb3781086a6
7
+ data.tar.gz: 28ca623466c6fc2672e5ab2ee80c91feb3523cff88ef3367d5d5d1976d0da4d95a266579609a2e201097112dcdc7a8e65c2e735514ca3208b0f8797b05471631
@@ -65,6 +65,7 @@ module ActsAsPurchasableWizard
65
65
  def find_or_build_submit_order
66
66
  order = submit_order || build_effective_order()
67
67
  order = build_effective_order() if order.declined? # Make a new order, if the previous one was declined
68
+ order = build_effective_order() if order.voided? # Make a new order, if the previous one was voided
68
69
 
69
70
  # Update the order with the current owner
70
71
  if EffectiveOrders.organization_enabled? && respond_to?(:organization)
@@ -127,7 +127,7 @@ module ActsAsWizard
127
127
  end
128
128
 
129
129
  def default_wizard_step_title(step)
130
- self.class.const_get(:WIZARD_STEPS).fetch(step)
130
+ self.class.const_get(:WIZARD_STEPS)[step] || step.to_s.titleize
131
131
  end
132
132
 
133
133
  def first_completed_step
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.26.3'.freeze
2
+ VERSION = '2.26.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.26.3
4
+ version: 2.26.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: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails