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: 3f405113f520922715e551829d9059c36e923291a35a7ae254898dcbc609d96a
4
- data.tar.gz: 67e9d68e3b45d9173e14d51da7a6f8d8c6c1fdf35b8e74bc204f1a8261b47f6c
3
+ metadata.gz: 69383be96bec20188162a0c42162ce4727bf0f14ce74fa36556b09930bc2307a
4
+ data.tar.gz: 7d4ae8dc17da1c34834af13b9d864502de5b580eaa88e3e9da5258f7afc2efb7
5
5
  SHA512:
6
- metadata.gz: 6ba2e27b1ef6e7ff8bdf4e154ef08b4b70687d8c5cae8e7907e4456c698769816bd70e4e2c9dd956f9197abccd225ca76b646bac0932ff72b70a8a1a32d754be
7
- data.tar.gz: 697c1a6e458c761faeca1d96c527aba93d3814edd17169478828d6a9a56065ed917e98ed85e5419e15fd554eafadd8944efa48ca67d453f12ac6fce846f9c41c
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
- flash[:danger] = "Unknown step. You have been moved to the #{resource_wizard_steps.first} step."
50
- redirect_to wizard_path(resource_wizard_steps.first)
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; yield
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.10.0'.freeze
2
+ VERSION = '2.10.1'.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.10.0
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-12 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails