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.
Files changed (2) hide show
  1. data/app/models/cart_item.rb +1 -1
  2. metadata +3 -3
@@ -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?(Array)
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: 67
4
+ hash: 65
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 18
11
- version: 0.7.4.18
10
+ - 19
11
+ version: 0.7.4.19
12
12
  platform: ruby
13
13
  authors:
14
14
  - kopfmaschine.com