shop_bunny 0.7.4.18 → 0.7.4.19
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/cart_item.rb +1 -1
- metadata +3 -3
data/app/models/cart_item.rb
CHANGED
@@ -28,7 +28,7 @@ class CartItem < ActiveRecord::Base
|
|
28
28
|
return nil unless raw_item
|
29
29
|
unless @parsed_raw_item
|
30
30
|
json = JSON.parse(raw_item)
|
31
|
-
json = json.values.first if json.kind_of?(
|
31
|
+
json = json.values.first if json.kind_of?(Hash)
|
32
32
|
|
33
33
|
if json
|
34
34
|
@parsed_raw_item = ShopBunny.item_model_class_name.constantize.new(json)
|
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: 65
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 4
|
10
|
-
-
|
11
|
-
version: 0.7.4.
|
10
|
+
- 19
|
11
|
+
version: 0.7.4.19
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- kopfmaschine.com
|