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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e8b8a03670b7b26f26d1bc6fa355179eeae83d31a406d3fc9ca5b1dcf1b748
|
4
|
+
data.tar.gz: feb3ac884eef970c45c190ca2d6362276a5c90db47bc34115d89aa1c31e076c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|