effective_resources 2.22.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f1b13829195775799805a0687e93edf636a0212ba8605121c0f2b71664bbe4b
|
4
|
+
data.tar.gz: 6c13fd710c92f283595aebd9ed7553c8b06baef6e91f6bc71719558069ff0748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77aed690165d729baaacc3bb62fab2d556ec19f88c0da70e0108a61a1aac6dc8572ca1ed3af96c871b59383846403cd76684723e1d2b1ac8dabe66f2612f455e
|
7
|
+
data.tar.gz: 1da231ac069c526ff2d4f1e77ef7a9d5f7bea5e005c72bf08bb879854b4761cca71e185b6882919d4fc5b6d8e342d9a5d07cdd70460fe222e7fd921b064e3fb7
|
@@ -38,7 +38,7 @@ module EffectiveResourcesWizardHelper
|
|
38
38
|
if (current || disabled)
|
39
39
|
content_tag(:a, label, class: klass)
|
40
40
|
else
|
41
|
-
link_to(label, path || wizard_path(nav_step), class: klass)
|
41
|
+
link_to(label, path || wizard_path(nav_step), class: klass, 'data-turbolinks': false)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
@@ -165,9 +165,14 @@ module ActsAsPurchasableWizard
|
|
165
165
|
order
|
166
166
|
end
|
167
167
|
|
168
|
+
def update_submit_fees_and_order!
|
169
|
+
build_submit_fees_and_order(force: true)
|
170
|
+
save!
|
171
|
+
end
|
172
|
+
|
168
173
|
# Should be indempotent.
|
169
|
-
def build_submit_fees_and_order
|
170
|
-
return false if was_submitted?
|
174
|
+
def build_submit_fees_and_order(force: false)
|
175
|
+
return false if was_submitted? && !force
|
171
176
|
|
172
177
|
fees = find_or_build_submit_fees()
|
173
178
|
raise('already has purchased submit fees') if Array(fees).any?(&:purchased?)
|
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.22.
|
4
|
+
version: 2.22.1
|
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
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|