shop_bunny 0.7.4.14 → 0.7.4.16
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.
|
@@ -6,7 +6,13 @@ module ActionController
|
|
|
6
6
|
# TODO This could result in a mass of empty carts. A Problem?
|
|
7
7
|
def find_cart
|
|
8
8
|
if session[:cart_id]
|
|
9
|
-
|
|
9
|
+
begin
|
|
10
|
+
@cart = Cart.find(session[:cart_id])
|
|
11
|
+
rescue ActiveRecord::RecordNotFound => e
|
|
12
|
+
@cart = Cart.create
|
|
13
|
+
session[:cart_id] = @cart.id
|
|
14
|
+
end
|
|
15
|
+
|
|
10
16
|
else
|
|
11
17
|
@cart = Cart.create
|
|
12
18
|
session[:cart_id] = @cart.id
|
|
@@ -17,4 +23,4 @@ module ActionController
|
|
|
17
23
|
session[:cart_id] = nil
|
|
18
24
|
end
|
|
19
25
|
end
|
|
20
|
-
end
|
|
26
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shop_bunny
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 71
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
9
|
- 4
|
|
10
|
-
-
|
|
11
|
-
version: 0.7.4.
|
|
10
|
+
- 16
|
|
11
|
+
version: 0.7.4.16
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- kopfmaschine.com
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-
|
|
19
|
+
date: 2010-12-13 00:00:00 +01:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies: []
|
|
22
22
|
|