effective_resources 2.18.2 → 2.18.4
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: 6afb7b75d0b3a67f0522248e685bb8fb2fa973d6110e4ab5371c6579457eab1b
|
4
|
+
data.tar.gz: 46b6e23e7fc14d623af21227175aa9c74fc4e5ace265b193e1522e293fa97946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2daa3b7acc0596210380e8a6026e92691eb0a1a89591cb5c3aeda0601a740c7790630f2da1213fe31190948071b5319dad46bed18279603e6abbb48dc379153d
|
7
|
+
data.tar.gz: ad76dbb446443fef1516bcfddbe9d35124157061eb41ed90d4520520b834c29ed670905f74cf4273c75d676707bfc014fd7b267e51fc68c772d501f9246e8ec9
|
@@ -35,7 +35,7 @@ module ActsAsStatused
|
|
35
35
|
end
|
36
36
|
|
37
37
|
if EffectiveResources.serialize_with_coder?
|
38
|
-
serialize :status_steps, type: Hash, coder: YAML
|
38
|
+
serialize :status_steps, type: Hash, coder: YAML
|
39
39
|
else
|
40
40
|
serialize :status_steps, Hash
|
41
41
|
end
|
@@ -165,6 +165,10 @@ module ActsAsStatused
|
|
165
165
|
self.class.const_get(:STATUSES)
|
166
166
|
end
|
167
167
|
|
168
|
+
def status_steps
|
169
|
+
Hash(self[:status_steps])
|
170
|
+
end
|
171
|
+
|
168
172
|
def all_statuses
|
169
173
|
status_keys
|
170
174
|
end
|
@@ -56,7 +56,7 @@ module ActsAsWizard
|
|
56
56
|
end
|
57
57
|
|
58
58
|
if EffectiveResources.serialize_with_coder?
|
59
|
-
serialize :wizard_steps, type: Hash, coder: YAML
|
59
|
+
serialize :wizard_steps, type: Hash, coder: YAML
|
60
60
|
else
|
61
61
|
serialize :wizard_steps, Hash
|
62
62
|
end
|
@@ -74,6 +74,10 @@ module ActsAsWizard
|
|
74
74
|
self.class.const_get(:WIZARD_STEPS).keys
|
75
75
|
end
|
76
76
|
|
77
|
+
def wizard_steps
|
78
|
+
Hash(self[:wizard_steps])
|
79
|
+
end
|
80
|
+
|
77
81
|
def all_steps
|
78
82
|
wizard_step_keys
|
79
83
|
end
|
data/lib/effective_resources.rb
CHANGED
@@ -16,9 +16,10 @@ module EffectiveResources
|
|
16
16
|
|
17
17
|
include EffectiveGem
|
18
18
|
|
19
|
-
# We use the newer syntax for serialize calls in rails 7
|
19
|
+
# We use the newer syntax for serialize calls in rails 7.1 but it changes behaviour
|
20
20
|
def self.serialize_with_coder?
|
21
|
-
|
21
|
+
false
|
22
|
+
#Gem::Version.new(Gem.loaded_specs['rails'].version.to_s) >= Gem::Version.new('7')
|
22
23
|
end
|
23
24
|
|
24
25
|
def self.authorized?(controller, action, resource)
|
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.18.
|
4
|
+
version: 2.18.4
|
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-11-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|