shop_bunny 0.7.4.8 → 0.7.4.9

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 +4 -4
  2. metadata +3 -3
@@ -12,10 +12,6 @@ class CartItem < ActiveRecord::Base
12
12
  after_save :touch_cart
13
13
  after_destroy :touch_cart
14
14
 
15
- ShopBunny.cart_item_enhancements.each do |enhancement|
16
- include enhancement
17
- end
18
-
19
15
  # TODO attr_accessible :quantity
20
16
 
21
17
  def total_price
@@ -38,6 +34,10 @@ class CartItem < ActiveRecord::Base
38
34
  end
39
35
  end
40
36
 
37
+ ShopBunny.cart_item_enhancements.each do |enhancement|
38
+ include enhancement
39
+ end
40
+
41
41
  protected
42
42
  def touch_cart
43
43
  cart.touch if cart
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: 119
4
+ hash: 117
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 8
11
- version: 0.7.4.8
10
+ - 9
11
+ version: 0.7.4.9
12
12
  platform: ruby
13
13
  authors:
14
14
  - kopfmaschine.com