caboose-cms 0.7.75 → 0.7.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/caboose/pending_orders_pdf.rb +7 -3
- data/lib/caboose/version.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: 17fb0f79f210b0eadb0f044309e892124507bf4a
|
4
|
+
data.tar.gz: 1c9cf6fe2e25747432afe34d0d1d5de6bbfb449b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35304341aa0a95173cb638d10ed14e8ebc5795cc08fbdb3d36a039e6e9fdfb4204d03235ff7994f6fd73cf9621c3845fd91dce7c3ab9965728ebbe1db1dcf827
|
7
|
+
data.tar.gz: 7b6f70b9c0af0b09cbf8d484889799e3672b291a89f289663ee6853b474c4e9865b3f61e28135ea0d3d0c8557d20568b7297d8ceff469f0284b8018853323f1a
|
@@ -144,7 +144,9 @@ module Caboose
|
|
144
144
|
if li.variant.product.product_images.count > 0 && li.variant.product.product_images.first.url(:tiny)
|
145
145
|
# Caboose.log("image path: #{li.variant.product.product_images.first.url(:tiny)}")
|
146
146
|
# image = ""
|
147
|
-
|
147
|
+
url = li.variant.product.product_images.first.url(:tiny)
|
148
|
+
url = "http:#{url}" if url.starts_with?('//')
|
149
|
+
image = open(url)
|
148
150
|
else
|
149
151
|
image = ""
|
150
152
|
end
|
@@ -179,8 +181,10 @@ module Caboose
|
|
179
181
|
if li.variant.product.option3 && li.variant.option3 then options += li.variant.product.option3 + ": " + li.variant.option3 + "\n" end
|
180
182
|
if li.variant.product.product_images.count > 0 && li.variant.product.product_images.first.url(:tiny)
|
181
183
|
# Caboose.log("image path: #{li.variant.product.product_images.first.url(:tiny)}")
|
182
|
-
# image = ""
|
183
|
-
|
184
|
+
# image = ""
|
185
|
+
url = li.variant.product.product_images.first.url(:tiny)
|
186
|
+
url = "http:#{url}" if url.starts_with?('//')
|
187
|
+
image = open(url)
|
184
188
|
else
|
185
189
|
image = ""
|
186
190
|
end
|
data/lib/caboose/version.rb
CHANGED