wco_models 3.1.0.312 → 3.1.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/wco/leadsets_controller.rb +8 -4
- data/app/views/wco/leadsets/index.haml +2 -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: c622a73c401d1bb78a1ce1ffe72ae4923d2fa3d452d6011e5ad5968345e66300
|
|
4
|
+
data.tar.gz: f09b8bf4a8ccc5974979e9c399108b83b6d2f69ca9a8214cb9b026cb10b373b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 213f70b468caee15cd916d996778954a8f8471a6c4feb0854fdc8d7d2d79d931629573d6c4b38b057309065fa769c38764240097fbda173d5b514917d56da037
|
|
7
|
+
data.tar.gz: b416d7abe72e3dc78e429cd570a0d5a358942879680f5d6094c9d2c26651a52dff3d9755df8d9b009e6c2b38b2aae7d952bbaaa765d7fbc203c05871a9535ceb
|
|
@@ -20,13 +20,17 @@ class Wco::LeadsetsController < Wco::ApplicationController
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def destroy
|
|
23
|
-
|
|
23
|
+
authorize! :create, Wco::Leadset
|
|
24
|
+
leadsets = Wco::Leadset.find( params[:leadset_ids] ) rescue []
|
|
24
25
|
@results = []
|
|
25
26
|
leadsets.each do |leadset|
|
|
26
|
-
@results.push leadset.
|
|
27
|
+
@results.push leadset.destroy
|
|
27
28
|
end
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
if params[:id]
|
|
30
|
+
@results.push Wco::Leadset.find(params[:id]).destroy
|
|
31
|
+
end
|
|
32
|
+
flash[:notice] = "destroy outcome: #{@results.inspect}."
|
|
33
|
+
redirect_to request.referrer || { action: 'index' }
|
|
30
34
|
end
|
|
31
35
|
|
|
32
36
|
def edit
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.a.mr-2= button_tag 'Delete', method: :delete, class: 'delete-btn'
|
|
10
10
|
= render 'wco/tags/actions', resource: 'Wco::Leadset'
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
= render '/wco/search', path: leadsets_path
|
|
13
13
|
= paginate @leadsets, :param_name => :leadsets_page, :views_prefix => 'wco'
|
|
14
14
|
%table.bordered
|
|
15
15
|
%thead
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
%td
|
|
31
31
|
= link_to '[~]', edit_leadset_path( leadset )
|
|
32
32
|
= link_to leadset.company_url, leadset_path(leadset)
|
|
33
|
+
.d-inline-block= button_to 'x', leadset_path(leadset), method: :delete, data: { confirm: 'Are you sure?' }
|
|
33
34
|
|
|
34
35
|
%td.tags
|
|
35
36
|
= render '/wco/tags/index_chips', tags: leadset.tags
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wco_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.0.
|
|
4
|
+
version: 3.1.0.313
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|