effective_products 0.3.3 → 0.3.5
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 +3 -3
- 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: f3ff01ae072bb605fb980749ddb04650e3f8f5efd0464b4ef96a69d266d710aa
|
4
|
+
data.tar.gz: 6fd0f50ce242878ad9f1b85c6280fd3e825ff036bce4ee1dfcc7dd550ee0b2f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 999ce15808dac05122f3f4c3ba7a59f9cb2ab6e2631f157beb3497c8c96d2de8c09f2a228b7cc32e1b1fc04449bf3dd09f431040771a9aece1c078eefd12d67f
|
7
|
+
data.tar.gz: 2205482c645655070368ddf10164b9d06e1cd69b0de82620b20fb54b67ab31cae934f652ad50eb284fdf15b3fa87243f63e8898465e2f87c6787dbcdeabc32aa
|
@@ -15,12 +15,12 @@ class EffectiveRingWizardsDatatable < Effective::Datatable
|
|
15
15
|
col :orders, action: :show
|
16
16
|
|
17
17
|
col(:issued_at, label: 'Issued on') do |resource|
|
18
|
-
resource.ring
|
18
|
+
resource.ring&.issued_at&.strftime('%F') || '-'
|
19
19
|
end
|
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.5
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|