effective_resources 2.25.12 → 2.25.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/acts_as_wizard.rb +16 -0
- data/lib/effective_resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf9636790de9d9e89ffa844dcd0d88abb19d26b6c3cbd9c492aa08ba936c7cbd
|
4
|
+
data.tar.gz: 8c45b0badf8f6de31dc53baa6ab47d5fac1fd1764c512d1ad6b02d92f198627d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0bcf47e270a032a1b6405dc995805b3570a50274ce579bddd5fd943aacd9631ed29a0a5063afc418e75136dc457e85266880e188aaff77877c41f577ca6b5fb
|
7
|
+
data.tar.gz: 603ff9daf3c4be2bf696cfa1e43a178a245943c21d4004eef2b1fbaa381ba9b000c8a727ad54a4fba5fa10efd55d8f810c8813fa5195e8aec3f56d7e57abf1bd
|
@@ -123,6 +123,10 @@ module ActsAsWizard
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def wizard_step_title(step)
|
126
|
+
default_wizard_step_title(step)
|
127
|
+
end
|
128
|
+
|
129
|
+
def default_wizard_step_title(step)
|
126
130
|
self.class.const_get(:WIZARD_STEPS).fetch(step)
|
127
131
|
end
|
128
132
|
|
@@ -157,6 +161,18 @@ module ActsAsWizard
|
|
157
161
|
all_steps.first(index)
|
158
162
|
end
|
159
163
|
|
164
|
+
def all_steps_after(step)
|
165
|
+
index = all_steps.index(step)
|
166
|
+
raise("unexpected step #{step}") unless index.present?
|
167
|
+
|
168
|
+
all_steps[(index + 1)..-1]
|
169
|
+
end
|
170
|
+
|
171
|
+
def reset_all_wizard_steps_after(step)
|
172
|
+
all_steps_after(step).each { |step| wizard_steps.delete(step) }
|
173
|
+
wizard_steps
|
174
|
+
end
|
175
|
+
|
160
176
|
def previous_step(step)
|
161
177
|
index = required_steps.index(step)
|
162
178
|
required_steps[index-1] unless index == 0 || index.nil?
|
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.25.
|
4
|
+
version: 2.25.14
|
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-08-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|