effective_resources 2.10.0 → 2.10.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69383be96bec20188162a0c42162ce4727bf0f14ce74fa36556b09930bc2307a
|
4
|
+
data.tar.gz: 7d4ae8dc17da1c34834af13b9d864502de5b580eaa88e3e9da5258f7afc2efb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb3f7fb7caff620a403c577fc9d1196061e7da0ea2e1d137b6b4889e02097b46cc4a3cc8b7497cfc9fcb1641d9111170daed413a9f4743ee6005e0ba0ed4b0e
|
7
|
+
data.tar.gz: 6cc85b52a0ee048f15ee61e9b370cc3cad27910529bbf4d83c8260d67bcdaf7ce464d5841fcfa45c1adb6a2fd518c4348f4e46aba5831740fb4f9d4972e44194
|
@@ -46,8 +46,10 @@ module Effective
|
|
46
46
|
helper EffectiveResourcesWizardHelper
|
47
47
|
|
48
48
|
rescue_from Wicked::Wizard::InvalidStepError do |exception|
|
49
|
-
|
50
|
-
|
49
|
+
step = resource.required_steps.first || resource_wizard_steps.first
|
50
|
+
|
51
|
+
flash[:danger] = "Unknown step. You have been moved to the #{step} step."
|
52
|
+
redirect_to wizard_path(step)
|
51
53
|
end
|
52
54
|
|
53
55
|
# effective_resources on save callback
|
@@ -172,7 +172,8 @@ module ActsAsWizard
|
|
172
172
|
existing = current_step
|
173
173
|
|
174
174
|
begin
|
175
|
-
self.current_step = nil
|
175
|
+
self.current_step = nil
|
176
|
+
yield
|
176
177
|
ensure
|
177
178
|
self.current_step = existing
|
178
179
|
end
|
@@ -191,7 +192,4 @@ module ActsAsWizard
|
|
191
192
|
end
|
192
193
|
|
193
194
|
end
|
194
|
-
|
195
|
-
|
196
|
-
|
197
195
|
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.10.
|
4
|
+
version: 2.10.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: 2023-09-
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|