ishapi 0.1.8.71 → 0.1.8.72
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ishapi/order_items_controller.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 705dff8da8e55538f06c7a8e15785e6efcdf993e
|
4
|
+
data.tar.gz: c9778c0721654945770ef533b6a145499a2cfda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f05c6fcf4d9910ddb9fa4d58f2ec0af43c16f3a5cd2080830ef9345eb58b78e1edb656d2678bb94846cf8678ae4526e246420af96483ddb2ec34ecfdb897b87
|
7
|
+
data.tar.gz: 242e3e9b87aaa103af257e5dfa503451525664e7a9f06528d3312aaa45ada884692b6857ff7389df0a289f6f4c3f93131245cbeb43ae4a4277053b2ed9519052
|
@@ -22,7 +22,7 @@ module Ishapi
|
|
22
22
|
# byebug
|
23
23
|
|
24
24
|
if params[:order_item][:saveMeasurement]
|
25
|
-
m = @current_profile.measurement
|
25
|
+
m = @current_profile.measurement || CoTailors::ProfileMeasurement.create( :profile => @current_profile )
|
26
26
|
flag = m.update_attributes( measurement_params )
|
27
27
|
if !flag
|
28
28
|
render :json => { :statuc => :not_ok, :error => m.errors.messages }
|