wco_hosting 0.0.0.7 → 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: 4aa8486d68769238ad8bdb4953c59e2f644db0e3e98bb1e38464fa323a95c6a9
4
- data.tar.gz: '0285a7429850c0b041396ceb4adda9b7fad43c44d9bf654121181c343440dcb0'
3
+ metadata.gz: 03e8b8a03670b7b26f26d1bc6fa355179eeae83d31a406d3fc9ca5b1dcf1b748
4
+ data.tar.gz: feb3ac884eef970c45c190ca2d6362276a5c90db47bc34115d89aa1c31e076c6
5
5
  SHA512:
6
- metadata.gz: 36decdaf0fbd0751f957d217519c689c02247f1c7e41ac20f8420b0e17215e58153d9fcaa3760dd134d5246c9514a41a3d36cb0a311aef9632ea9d0c9b8687cb
7
- data.tar.gz: 92a79e8fa04414a3d6048de33c7e6210c4cb5ff5e53b6a3485a78c2edd91a4de428914aecb05afa81044a8f75d9f50d313d46bca1986af192eb0a1a4963f4255
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.7
4
+ version: 0.0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev