shop_bunny 0.7.4.6 → 0.7.4.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,9 +20,9 @@ module ShopBunny
|
|
20
20
|
self.cart_items.inject(0) {|sum,e| sum += e.quantity}
|
21
21
|
end
|
22
22
|
|
23
|
-
def shipping_costs
|
23
|
+
def shipping_costs(options = {})
|
24
24
|
return 0 if coupons.any?(&:removes_shipping_cost)
|
25
|
-
shipping_cost_calculator.costs_for(self)
|
25
|
+
shipping_cost_calculator.costs_for(self, options)
|
26
26
|
end
|
27
27
|
|
28
28
|
# Calculates the sum of all cart_items, excluding the coupons discount!
|
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: 105
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 4
|
10
|
-
-
|
11
|
-
version: 0.7.4.
|
10
|
+
- 7
|
11
|
+
version: 0.7.4.7
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- kopfmaschine.com
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-18 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|