shop_bunny 0.7.4.12 → 0.7.4.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/shop_bunny/cart_module.rb +4 -1
  2. metadata +3 -3
@@ -86,12 +86,15 @@ module ShopBunny
86
86
 
87
87
  #sets the quantity of an article specified by :article_id, returns nil if no article has been found
88
88
  def update_item(item,options)
89
- cart_item = self.cart_items.find_by_item_id(item)
89
+ cart_item = self.cart_items.find_by_item_id(item)
90
90
  if cart_item
91
91
  cart_item.quantity = options[:quantity]
92
92
  cart_item.save!
93
93
  self.reload
94
94
  end
95
+
96
+ update_automatic_coupons!
97
+
95
98
  cart_item
96
99
  end
97
100
 
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: 127
4
+ hash: 125
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 12
11
- version: 0.7.4.12
10
+ - 13
11
+ version: 0.7.4.13
12
12
  platform: ruby
13
13
  authors:
14
14
  - kopfmaschine.com