effective_products 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/datatables/admin/effective_stamps_datatable.rb +1 -0
- data/app/datatables/effective_ring_wizards_datatable.rb +2 -2
- data/app/datatables/effective_stamp_wizards_datatable.rb +2 -2
- data/app/models/concerns/effective_products_stamp_wizard.rb +1 -1
- data/app/models/effective/stamp.rb +7 -1
- data/lib/effective_products/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: a4b25ebc5c37a2f87729ea2643b30f75407cfefaa5509d8f6480d4153b1a5586
|
4
|
+
data.tar.gz: c97edf94e471fc2f2ed2e5dce542ebe57c456d9185a1fe2738824d39b4aa3b0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e6e17fba89d2e0753fcca09cf186e2ae6186041076db2f590148d77f6044b888d7e74de1c07dc1961459b699bd835d45bc0df2cd44ce89af5a1cedfc46a6de1
|
7
|
+
data.tar.gz: 5ee5f2d8835addccb7967d25196e9be28cda96e07ccf97881dd0fd980cd6d1c12cf6438c425915c09f620dffa2be2fc478be15633ab76ab89c418759c6877e72
|
@@ -20,7 +20,7 @@ class EffectiveRingWizardsDatatable < Effective::Datatable
|
|
20
20
|
|
21
21
|
actions_col(actions: []) do |resource|
|
22
22
|
if resource.draft?
|
23
|
-
dropdown_link_to('Continue', effective_products.ring_wizard_build_path(resource,
|
23
|
+
dropdown_link_to('Continue', effective_products.ring_wizard_build_path(resource, resource.next_step), 'data-turbolinks' => false)
|
24
24
|
dropdown_link_to('Delete', effective_products.ring_wizard_path(resource), 'data-confirm': "Really delete #{resource}?", 'data-method': :delete)
|
25
25
|
else
|
26
26
|
dropdown_link_to('Show', effective_products.ring_wizard_path(resource))
|
@@ -30,7 +30,7 @@ class EffectiveRingWizardsDatatable < Effective::Datatable
|
|
30
30
|
end
|
31
31
|
|
32
32
|
collection do
|
33
|
-
EffectiveProducts.RingWizard.deep.
|
33
|
+
EffectiveProducts.RingWizard.deep.where(owner: current_user)
|
34
34
|
end
|
35
35
|
|
36
36
|
end
|
@@ -20,7 +20,7 @@ class EffectiveStampWizardsDatatable < Effective::Datatable
|
|
20
20
|
|
21
21
|
actions_col(actions: []) do |resource|
|
22
22
|
if resource.draft?
|
23
|
-
dropdown_link_to('Continue', effective_products.stamp_wizard_build_path(resource,
|
23
|
+
dropdown_link_to('Continue', effective_products.stamp_wizard_build_path(resource, resource.next_step), 'data-turbolinks' => false)
|
24
24
|
dropdown_link_to('Delete', effective_products.stamp_wizard_path(resource), 'data-confirm': "Really delete #{resource}?", 'data-method': :delete)
|
25
25
|
else
|
26
26
|
dropdown_link_to('Show', effective_products.stamp_wizard_path(resource))
|
@@ -30,7 +30,7 @@ class EffectiveStampWizardsDatatable < Effective::Datatable
|
|
30
30
|
end
|
31
31
|
|
32
32
|
collection do
|
33
|
-
EffectiveProducts.StampWizard.deep.
|
33
|
+
EffectiveProducts.StampWizard.deep.where(owner: current_user)
|
34
34
|
end
|
35
35
|
|
36
36
|
end
|
@@ -84,7 +84,13 @@ module Effective
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def to_s
|
87
|
-
[
|
87
|
+
[
|
88
|
+
model_name.human,
|
89
|
+
('Replacement' if stamp_wizard_id_was.present?),
|
90
|
+
'-',
|
91
|
+
name.presence,
|
92
|
+
("- #{category}" if category.present?)
|
93
|
+
].compact.join(' ')
|
88
94
|
end
|
89
95
|
|
90
96
|
def mark_as_submitted!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_products
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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: 2024-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|