wco_hosting 0.0.0.16 → 0.0.0.17
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: 925161dea305615f15641b1d225e64ed138116934c5b47cf10c202519b76020d
|
4
|
+
data.tar.gz: 97db1e81f6629066cbe060c03ee2b49a3e4094f61feecdce4eb14d5813dda266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0e22a2fdc1b9b025472b4f6a23e7b141efeaac2b7ad3df8ae45036d38cdaec820b6df70c7419249c1712964cc62b48af2a5d7f1e338fd247a547e0553ec6a6
|
7
|
+
data.tar.gz: c7d4a7ba01588caf892f0386e4e7f74f45425d377a13cf010b66e790225915a9de63f4cd38ae1ab4102c77d2602f1ae82dd5a00ad5272fa5c42913a887e169f4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_hosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|
@@ -232,13 +232,11 @@ files:
|
|
232
232
|
- app/assets/config/wco_hosting_manifest.js
|
233
233
|
- app/assets/javascript/wco_hosting/application.js
|
234
234
|
- app/assets/stylesheets/wco_hosting/application.css
|
235
|
-
- app/assets/stylesheets/wco_hosting/dark_theme.scss
|
236
235
|
- app/assets/stylesheets/wco_hosting/main.scss
|
237
236
|
- app/controllers/wco_hosting/appliance_tmpls_controller.rb
|
238
237
|
- app/controllers/wco_hosting/appliances_controller.rb
|
239
238
|
- app/controllers/wco_hosting/application_controller.rb
|
240
239
|
- app/controllers/wco_hosting/domains_controller.rb
|
241
|
-
- app/controllers/wco_hosting/leadsets_controller.rb-trash
|
242
240
|
- app/controllers/wco_hosting/serverhosts_controller.rb
|
243
241
|
- app/controllers/wco_hosting/subscriptions_controller.rb
|
244
242
|
- app/helpers/wco_hosting/application_helper.rb
|
@@ -1,44 +0,0 @@
|
|
1
|
-
|
2
|
-
class WcoHosting::LeadsetsController < WcoHosting::ApplicationController
|
3
|
-
|
4
|
-
before_action :set_lists
|
5
|
-
|
6
|
-
def index
|
7
|
-
authorize! :index, Wco::Leadset
|
8
|
-
@leadsets = Wco::Leadset.all
|
9
|
-
end
|
10
|
-
|
11
|
-
def show
|
12
|
-
@leadset = Wco::Leadset.find params[:id]
|
13
|
-
authorize! :show, @leadset
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
def update
|
18
|
-
@leadset = Wco::Leadset.find params[:id]
|
19
|
-
authorize! :update, @leadset
|
20
|
-
params[:leadset][:serverhost_ids].delete("")
|
21
|
-
puts! params, 'params'
|
22
|
-
|
23
|
-
flag = @leadset.update_attributes( params.require(:leadset).permit(
|
24
|
-
:company_url, :email, serverhost_ids: [] )
|
25
|
-
)
|
26
|
-
if flag
|
27
|
-
flash_notice @leadset
|
28
|
-
else
|
29
|
-
flash_alert @leadset
|
30
|
-
end
|
31
|
-
redirect_to action: :index
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
## private
|
36
|
-
##
|
37
|
-
private
|
38
|
-
|
39
|
-
def set_lists
|
40
|
-
@serverhosts_list = WcoHosting::Serverhost.list
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
end
|