wco_hosting 0.0.0.22 → 0.0.0.24

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: 88771bf05ca29f18ef980ce4d77335f87c1546163636d412ca5eb3723b48131b
4
- data.tar.gz: b52c0dcb2e54622db4263fa2f125505b6d9177087a50b7275d39bd19dd11ae8c
3
+ metadata.gz: f47cf4cc2b388bb3c0caefb58c8f8e54168c1ebddd4a73ecdbce9d2eb8c73b48
4
+ data.tar.gz: 872ec182cffa5ad7978cc4baa0fd001048664449afc058b14080a361b7bffe45
5
5
  SHA512:
6
- metadata.gz: 17045238ded96201fa65721e3d71de2377d2ef079822ef7e123a0458c19c70db9c2252c83569a48a8a2613d398eb44dda14bf5a670670480014a94e7f9dfe9fb
7
- data.tar.gz: 2acf7ca22833247af4c2fbd1c86d296873a5e356a9812584918d1bd0eb6d020732131da2b33daf3dc9094782484fcd7787a56defaa18f2f224174601d580d0ce
6
+ metadata.gz: f6338b4e27f91b846c2deb7e4465099ee616412f27e8e2c75735ffc4eb42e19ecc9150769a9d96114505f27ce759d4e435cb29337a4114574642a149bff8271e
7
+ data.tar.gz: 31819e3656572ef71c9af024a1767de03fe86151a584f61df9e49e69948bf51fedec9fa9a44df9a89c6f7326c62c2e17e095352d5962e2e3ccb8e22493b612f4
@@ -0,0 +1,32 @@
1
+
2
+ class WcoHosting::EnvironmentsController < WcoHosting::ApplicationController
3
+
4
+ def index
5
+ authorize! :index, WcoHosting::Environment
6
+ @environments = WcoHosting::Environment.all
7
+ end
8
+
9
+ def edit
10
+ @environment = WcoHosting::Environment.find params[:id]
11
+ authorize! :edit, @environment
12
+ end
13
+
14
+ def show
15
+ @environment = WcoHosting::Environment.find params[:id]
16
+ authorize! :show, @environment
17
+ @subenvironments = WcoHosting::Appliance.where( environment: @environment.name ).map( &:subenvironment )
18
+ end
19
+
20
+ def update
21
+ @environment = WcoHosting::Environment.find params[:id]
22
+ authorize! :update, @environment
23
+ if @environment.update_attributes( params[:environment].permit! )
24
+ flash_notice @environment
25
+ else
26
+ flash_alert @environment
27
+ end
28
+ redirect_to action: :index
29
+ end
30
+
31
+
32
+ end
@@ -34,7 +34,7 @@
34
34
  = render 'wco/main_header'
35
35
  = render "/wco_hosting/main_header"
36
36
 
37
- = render '/wco/alerts_notices'
37
+ = render '/wco/application/alerts_notices'
38
38
  %hr
39
39
 
40
40
  = yield
@@ -4,5 +4,4 @@ module WcoHosting; end
4
4
 
5
5
  class WcoHosting::Engine < ::Rails::Engine
6
6
  isolate_namespace WcoHosting
7
- # isolate_namespace Wco
8
7
  end
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.22
4
+ version: 0.0.0.24
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-04-13 00:00:00.000000000 Z
11
+ date: 2024-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan