shop_bunny 0.7.4.20 → 0.7.4.21

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
@@ -19,7 +19,7 @@ class CartItem < ActiveRecord::Base
19
19
  end
20
20
 
21
21
  def item=(new_item)
22
- write_attribute(:raw_item, new_item.shop_bunny_json_attributes.to_json)
22
+ write_attribute(:raw_item, (new_item.respond_to?(:shop_bunny_json_attributes) ? new_item.shop_bunny_json_attributes : new_item.attributes).to_json)
23
23
  @parsed_raw_item = nil
24
24
  new_item
25
25
  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: 79
4
+ hash: 77
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 20
11
- version: 0.7.4.20
10
+ - 21
11
+ version: 0.7.4.21
12
12
  platform: ruby
13
13
  authors:
14
14
  - kopfmaschine.com