caboose-cms 0.5.93 → 0.5.94

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjdiMGRkZTc0ZGM4YWVhMjM4MDg1ZTk5MTNkMjRkYzAwN2Q0YjI3ZA==
4
+ YTQ2ODVmNTYwNDE1ZjNjNzQ2NWIwM2Y2NjE1ZmRiNGRlMmRmMjc3Yw==
5
5
  data.tar.gz: !binary |-
6
- NWQ2ZjM5Njk2YTAyMDJiMTZmNTJmZTJlZDNiYjc0YzBlMWJhOTYyMg==
6
+ ZDVhM2M4YzZlMWFlMDZkOGJiY2Y5NDliYmE1YWE4NDk0NjcwMTc5Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTRkMTVhODkzMGU5NjRkMDViMjA1ZmYyNDNhMWRhYTUyM2VkZTY1MjlkYTNl
10
- Y2Y4YWM0YmJlYTUxMWJjYjI2MWQxMTRkY2FiNDgwMzgwMzZjMzI1NDBlOTFk
11
- Y2VhOTE0MzBiY2MyMzJlYTZmOWY4Nzg1NTFjMzY3OWVlYjQ1ZjE=
9
+ MDZlZjZhYzVjMzU2NjI3OGMxMDA4ZDMyOGFjMzU2Yzg3NGU4YmY1NTVjMjE2
10
+ MTE4MTRiNDE1YzQ5YTQzNDU4ZDJlYTk3ZDRlYTk2NTMwODRmMzU1MjdmZmQy
11
+ ZmFmOWU0ZTMxNmU2MjljZmQwM2JlMWYzNzBkMjYwZDUyMDQ4YWM=
12
12
  data.tar.gz: !binary |-
13
- YWE0NTg4NDJjMjAzZTY3ZmQxMjM1ZDZiZTJiMDMxOGQ0NThjMjZkNTNiMzQ5
14
- OTNkMGQ2ZDM5MjY4ZGMxYjEwNmYzZTRlYzk1YTFkOTdmMDI1YTI4OGI2YjU0
15
- OWRiNTUwMzVjNzZjODhmMWI4YjAwNzY3YzQ1M2EyODk4NmRiZGQ=
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.create(
68
- :site_id => @site ? @site.id : nil,
69
- :status => Caboose::Order::STATUS_CART,
70
- :financial_status => Caboose::Order::STATUS_PENDING,
71
- :date_created => DateTime.now,
72
- :referring_site => request.env['HTTP_REFERER'],
73
- :landing_page => request.fullpath,
74
- :landing_page_ref => params[:ref] || nil
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.93'
2
+ VERSION = '0.5.94'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.93
4
+ version: 0.5.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry