caboose-store 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose_store/product.rb +2 -2
- data/lib/caboose-store/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjg2OGY0ZTNmM2VlZjc3OGIzOTNkYmM5YjgwYzcyZDg5NjhkM2UwNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmY3MzliNmJlOWQzMTA3OTlmMGE3ZDE0YmY4ZTBmN2NmMTdjNjNmZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDJhZDkxNDhkYWU0ZTNiOWE1MDU3NTU1OTYyYTEwYzEyOGFkNmFjZTJmZjgz
|
10
|
+
ODdmY2I3NThlYTgwNjUzY2E4NTI2MTBmODYxMjc4ZmQ0MDM1YzQ0OTIwNDg3
|
11
|
+
NzlhM2FmZWZmNzBjZWE1MzE5OTg3N2QzNzY4MWM4MDM0ZTJkMzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWYyOWFiM2FhYTZiN2I5ZGM2MTVkZDdiZTY1ZTZmNjFhZjlmOWM3NTk3ODc1
|
14
|
+
MjM3ZjRmM2Y2NDQ5MDZhN2VmNjIxMGY3Y2RkYzY0OTAxNjRhNmY4ZmQyMzUx
|
15
|
+
Mzc4OWQ5ZTNlNzUyNmU3Mjc4ZjM4NTU2YWNmODc3OGNiODIwN2Y=
|
@@ -96,8 +96,8 @@ module CabooseStore
|
|
96
96
|
min = 100000
|
97
97
|
max = 0
|
98
98
|
|
99
|
-
variants.each do |variant|
|
100
|
-
next if variant.nil? or variant.price.nil? or variant.price
|
99
|
+
self.variants.each do |variant|
|
100
|
+
next if variant.nil? or variant.price.nil? or variant.price <= 0
|
101
101
|
min = variant.price if variant.price < min
|
102
102
|
max = variant.price if variant.price > max
|
103
103
|
end
|