caboose-cms 0.5.93 → 0.5.94
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/controllers/caboose/application_controller.rb +9 -9
- 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
|
+
YTQ2ODVmNTYwNDE1ZjNjNzQ2NWIwM2Y2NjE1ZmRiNGRlMmRmMjc3Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDVhM2M4YzZlMWFlMDZkOGJiY2Y5NDliYmE1YWE4NDk0NjcwMTc5Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDZlZjZhYzVjMzU2NjI3OGMxMDA4ZDMyOGFjMzU2Yzg3NGU4YmY1NTVjMjE2
|
10
|
+
MTE4MTRiNDE1YzQ5YTQzNDU4ZDJlYTk3ZDRlYTk2NTMwODRmMzU1MjdmZmQy
|
11
|
+
ZmFmOWU0ZTMxNmU2MjljZmQwM2JlMWYzNzBkMjYwZDUyMDQ4YWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmUwOGU4MjQ1NWU1M2Y1Yjc3ZGQwYTlhNmJlODgzMWZkZWE3YWU2YjkzNTIw
|
14
|
+
ZjU2MTFiODAzODZmMDc2ZTJkN2EyYTFhMmZlMmE3ODgzZWI3ZTNkMTM5MDE5
|
15
|
+
MmFmYjE2MDdjNDQ2OTM0MTFhNWI0MjY0YjExODE5YThiMGFkYWQ=
|
@@ -64,15 +64,15 @@ module Caboose
|
|
64
64
|
end
|
65
65
|
|
66
66
|
if create_new_order # Create an order to associate with the session
|
67
|
-
@order = Caboose::Order.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
67
|
+
@order = Caboose::Order.new
|
68
|
+
@order.site_id = @site ? @site.id : nil
|
69
|
+
@order.status = Caboose::Order::STATUS_CART
|
70
|
+
@order.financial_status = Caboose::Order::STATUS_PENDING
|
71
|
+
@order.date_created = DateTime.now
|
72
|
+
@order.referring_site = request.env['HTTP_REFERER']
|
73
|
+
@order.landing_page = request.fullpath
|
74
|
+
@order.landing_page_ref = params[:ref] || nil
|
75
|
+
@order.save
|
76
76
|
# Save the cart ID in the session
|
77
77
|
session[:cart_id] = @order.id
|
78
78
|
end
|
data/lib/caboose/version.rb
CHANGED