effective_resources 1.10.1 → 1.11.0
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: a57730f0c7dea924ad0f2e97691d9c165efa9d8b7bffa0b4dddefed1a5364ac3
|
4
|
+
data.tar.gz: a225961a1f6e45ba7ec2a510fc831c21727ac3e36b97dfdc5efe575b524226cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264898b9e51e5deb83cd76dd1ef5a18b9aa3904c1fa2e5899ad4bdb5cff5b2a1563752386a28c758bd398e5c3ce69417069f0e49d8d8334e5bd9accb653960b5
|
7
|
+
data.tar.gz: dd7f10337d9eee419d13b5a8770929474c64bbe69d6b9c028586d0af83c739cbf4791bfa6a5e4b8972812e14edc811cd3e5d60d56a78bab29c4e970b5e42178f
|
@@ -10,6 +10,10 @@ module Effective
|
|
10
10
|
include Effective::WizardController::Save
|
11
11
|
include Effective::WizardController::WickedOverrides
|
12
12
|
|
13
|
+
module ClassMethods
|
14
|
+
def effective_wizard_controller?; true; end
|
15
|
+
end
|
16
|
+
|
13
17
|
included do
|
14
18
|
raise("please install gem 'wicked' to use Effective::WizardController") unless defined?(Wicked)
|
15
19
|
|
@@ -244,4 +244,8 @@ module EffectiveResourcesHelper
|
|
244
244
|
simple_format(sanitize(value.to_s, tags: @format_resource_tags, attributes: @format_resource_atts), {}, sanitize: false)
|
245
245
|
end
|
246
246
|
|
247
|
+
def edit_effective_wizard?
|
248
|
+
controller.class.try(:effective_wizard_controller?) && defined?(resource) && resource.draft?
|
249
|
+
end
|
250
|
+
|
247
251
|
end
|
@@ -59,6 +59,12 @@ module ActsAsWizard
|
|
59
59
|
wizard_step_keys()
|
60
60
|
end
|
61
61
|
|
62
|
+
# For use in the summary partials. Does not include summary.
|
63
|
+
def render_steps
|
64
|
+
blacklist = [:start, :billing, :checkout, :submitted, :summary]
|
65
|
+
(required_steps - blacklist).select { |step| has_completed_step?(step) }
|
66
|
+
end
|
67
|
+
|
62
68
|
def wizard_step_title(step)
|
63
69
|
self.class.const_get(:WIZARD_STEPS).fetch(step)
|
64
70
|
end
|
@@ -134,6 +140,11 @@ module ActsAsWizard
|
|
134
140
|
|
135
141
|
module ClassMethods
|
136
142
|
def acts_as_wizard?; true; end
|
143
|
+
|
144
|
+
def all_wizard_steps
|
145
|
+
const_get(:WIZARD_STEPS).keys
|
146
|
+
end
|
147
|
+
|
137
148
|
end
|
138
149
|
|
139
150
|
end
|
@@ -38,7 +38,7 @@ EffectiveResources.setup do |config|
|
|
38
38
|
# config.parent_mailer = '::ApplicationMailer'
|
39
39
|
|
40
40
|
# Default deliver method
|
41
|
-
# config.deliver_method = :
|
41
|
+
# config.deliver_method = :deliver_later
|
42
42
|
|
43
43
|
# Default layout
|
44
44
|
# config.mailer_layout = 'effective_mailer_layout'
|
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: 1.
|
4
|
+
version: 1.11.0
|
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: 2022-01-
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|