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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5494ef5456b563f09ab899d1cf820bcf98c4c878
4
- data.tar.gz: 419a7feeb1554f21da89ea4e917f5b96ffcb396d
3
+ metadata.gz: 43b383536ee1e55debc29d4a917bf84f0160309f
4
+ data.tar.gz: 910ed9b65fd64b892c9071a0f9d282311d8e7885
5
5
  SHA512:
6
- metadata.gz: 119f358d8c7cfe73391ed7e10c88545e8785891d4152e61a64d44b0054c5197fe77b843a3c1ee8e40e6dc801bb66479ed10b5a3ce5874f957821c7a77d57906c
7
- data.tar.gz: 3e4939eb786b08d7276bdcb097c9042f3d4516e4dc2522de57809ed016644c57ae6e9decc73c7a578800b0a9d37a3519b51e10940092e89d260cb2dbc1e96a01
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
- if current_cart.size == 0
34
- link_to (options.delete(:label) || 'Cart'), effective_orders.cart_path, options
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 = {})
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.3.8'.freeze
2
+ VERSION = '1.3.9'.freeze
3
3
  end
@@ -173,3 +173,4 @@
173
173
   (0.4ms) SELECT MAX("orders"."id") FROM "orders"
174
174
   (0.2ms) SELECT MAX("orders"."id") FROM "orders"
175
175
   (0.3ms) SELECT MAX("orders"."id") FROM "orders"
176
+  (0.3ms) SELECT MAX("orders"."id") FROM "orders"
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.8
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-06-15 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails