caboose-cms 0.5.218 → 0.5.219
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 +8 -8
- data/app/models/caboose/order.rb +2 -2
- data/lib/caboose/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
|
+
ZWVlZjlkNDZjNzY0ZDY1N2IzOTgwOTQzMmFjOWU5Y2NkMmIwYTkwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTBmOGRiYmZiN2M2NTI4NzVkM2NhMjUwOTBiNGMxMTQ1M2IzY2IxMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmFiZWZhMTY5MzE5ZDUwNDliYTk2NzlmOTJjOGYxNjk5MTc0YzI3YWU2N2Rl
|
10
|
+
YTZlYTA4ODQ2NGMxZDk5NDg5MDBjYTM1NGY2MGRhMWY1M2I4MDBiN2NlODcw
|
11
|
+
MGI0YjEyZDA0OWIwYjI4NjBiYzMyYjdkOGQ0NTAwOGMzNzhiZTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODJlMGY3MWRiMjE3ODI5OWQxNWM5NjhjYjExOTk4OTA5MjM3ODY4ZjMyZTFl
|
14
|
+
YzE0Y2RmY2FiMDRjN2NiZWMwZDE1MDE3MWQ5MDM5NDZmMTU4YmM4YzRkYjQ2
|
15
|
+
ZjQzMGVlYjY3OGM4ZjlkMmE3MDRhNDljZjhlYTQyM2EwMmU0ZGY=
|
data/app/models/caboose/order.rb
CHANGED
@@ -95,13 +95,13 @@ module Caboose
|
|
95
95
|
|
96
96
|
def decrement_quantities
|
97
97
|
self.line_items.each do |line_item|
|
98
|
-
line_item.variant.update_attribute(:
|
98
|
+
line_item.variant.update_attribute(:quantity_in_stock, line_item.variant.quantity_in_stock - line_item.quantity)
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
102
|
def increment_quantities
|
103
103
|
self.line_items.each do |line_item|
|
104
|
-
line_item.variant.update_attribute(:
|
104
|
+
line_item.variant.update_attribute(:quantity_in_stock, line_item.variant.quantity_in_stock - line_item.quantity)
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
data/lib/caboose/version.rb
CHANGED