wco_hosting 0.0.0.8 → 0.0.0.9

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: 4392db5beeeaeb606256e3790d1909af42e63d3fcf1cfa6d7289765fb3dc3a55
4
- data.tar.gz: bfb7dcb5d0985052165a3f58eddbd5467cc55c9f5aca932c0d6a776e45e03137
3
+ metadata.gz: 03e8b8a03670b7b26f26d1bc6fa355179eeae83d31a406d3fc9ca5b1dcf1b748
4
+ data.tar.gz: feb3ac884eef970c45c190ca2d6362276a5c90db47bc34115d89aa1c31e076c6
5
5
  SHA512:
6
- metadata.gz: 96bc7a1fcef16b03ef6f980ddc4ab94c4d28afeb2a070d200ed7fef4e2bfd9d9c01c00cf01aaf2d3185a33f4d20cff3ebe94074a79256ca12e928c9d584dc5c7
7
- data.tar.gz: 1d64445aaf24fa7d9cf2af35323e8f6f9273568233f87ee582d959eb168bd298f2300888b69d401b3d82f9a0e8949d5008f99ccfc7bdae6c2f3ef70051eaa11b
6
+ metadata.gz: c808081b1ff292e697e4bccab289cdd4d93096a1c7563dfdc4903c2b06fa3b57ea3b96295e8180f39c891f3ad0104b5bd936893a01d48c7f053a05d46f96853b
7
+ data.tar.gz: 31164bb80454672de6993f88dfe1fefcabd8fda2cca552f4551d91e265ccfec6bf13a594052e51e849fbdc0e4d84c3573e28b2520b43766f97f5024b3ad676fe
@@ -7,7 +7,12 @@ class WcoHosting::ApplianceTmplsController < WcoHosting::ApplicationController
7
7
  @appliance_tmpl = WcoHosting::ApplianceTmpl.new params[:tmpl].permit!
8
8
  authorize! :create, @appliance_tmpl
9
9
 
10
- @appliance_tmpl.price_id = Wco::Price.find( params[:tmpl][:wco_price_id] ).price_id
10
+ price = Wco::Price.find( params[:tmpl][:price] )
11
+ price.product = @appliance_tmpl
12
+ price.save
13
+
14
+ params[:tmpl][:price_id] = price.price_id
15
+ params[:tmpl][:price] = price
11
16
 
12
17
  flag = @appliance_tmpl.save
13
18
  if flag
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_hosting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.8
4
+ version: 0.0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev