effective_orders 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_carts_helper.rb +2 -5
- data/lib/effective_orders/version.rb +1 -1
- data/spec/dummy/log/test.log +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b383536ee1e55debc29d4a917bf84f0160309f
|
4
|
+
data.tar.gz: 910ed9b65fd64b892c9071a0f9d282311d8e7885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e92b350b78e52843d511b4cb81cacaec67fbb74858911171f0b0d766be82e5776dcb90a6f672f16dd0d8eead0e5ccca6a28bf79111c73160019ec58ae9556b
|
7
|
+
data.tar.gz: d1c224e1a7246ed9ea0436b227f78244d1b5f5e748ca99ec9bfa2e3319bddff9b597ac9952c3eece51f17f1095582569df620a0ba01da347648262902b053011
|
@@ -30,11 +30,8 @@ module EffectiveCartsHelper
|
|
30
30
|
def link_to_current_cart(opts = {})
|
31
31
|
options = {:id => 'current_cart', :rel => :nofollow}.merge(opts)
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
else
|
36
|
-
link_to (options.delete(:label) || "Cart (#{current_cart.size})"), effective_orders.cart_path, options
|
37
|
-
end
|
33
|
+
label = options.delete(:label) || 'Cart'
|
34
|
+
link_to (current_cart.size == 0 ? label : "#{label} (#{current_cart.size})"), effective_orders.cart_path, options
|
38
35
|
end
|
39
36
|
|
40
37
|
def link_to_add_to_cart(purchasable, opts = {})
|
data/spec/dummy/log/test.log
CHANGED
@@ -173,3 +173,4 @@
|
|
173
173
|
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
174
174
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
175
175
|
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
176
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|