spree_frontend 2.0.10 → 2.0.11

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: e30394e267e6a0eba7a832fc7e1f594fe6740984
4
- data.tar.gz: 6b8f494ae512bd4d5aca92915419c5a85fd0498c
3
+ metadata.gz: 99393747afca53af7cbed71e2fad651be8df2fa5
4
+ data.tar.gz: 8fc05b8b02ebfe80a8e67bdb88dcd83a2dba3082
5
5
  SHA512:
6
- metadata.gz: d5f932ffce68dcf18c259eda09a706fa30c00ec038b06ce39382324ed9785cd7b69761c7a393f8b42b137d9722ecc3d083c11064f8029d27fb4d50def51b5b96
7
- data.tar.gz: 3812ffc1c83eb9500507a08d48ae7784e4aa669fc0a1b628f91f8e9862f929a5c2a16109d0c1a944e2cbc6d420a8b5df98193367ce43ba10944f2111305c2cf0
6
+ metadata.gz: ec94fde232ca6bd6951dc690aa706b645782429c809a2027af395600cf4385763cc24de83016aa37be861774aea9a0c4482739d736c42a179657529c9e9d2619
7
+ data.tar.gz: 00d46ac2c1dbe62cf8b9a47ff615bb07979b887894666042a2020a884ba9ad8d7a283b921d7b7aa692ad5360a0015a285f81d7a89a8f9c91ad2767c4e3fe2b03
@@ -1,6 +1,8 @@
1
1
  module Spree
2
2
  class ProductsController < Spree::StoreController
3
3
  before_filter :load_product, :only => :show
4
+ before_filter :load_taxon, :only => :index
5
+
4
6
  rescue_from ActiveRecord::RecordNotFound, :with => :render_404
5
7
  helper 'spree/taxons'
6
8
 
@@ -44,5 +46,9 @@ module Spree
44
46
  @product = Product.active(current_currency).find_by_permalink!(params[:id])
45
47
  end
46
48
  end
49
+
50
+ def load_taxon
51
+ @taxon = Spree::Taxon.find(params[:taxon]) if params[:taxon].present?
52
+ end
47
53
  end
48
54
  end
@@ -11,7 +11,7 @@
11
11
  <td class="cart-item-description" data-hook="cart_item_description">
12
12
  <h4><%= link_to line_item.name, product_path(variant.product) %></h4>
13
13
  <%= variant.options_text %>
14
- <% if @order.insufficient_stock_lines.include? line_item %>
14
+ <% if line_item.insufficient_stock? %>
15
15
  <span class="out-of-stock">
16
16
  <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br />
17
17
  </span>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.10
19
+ version: 2.0.11
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.10
26
+ version: 2.0.11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_api
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.10
33
+ version: 2.0.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.10
40
+ version: 2.0.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -558,7 +558,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
558
558
  requirements:
559
559
  - none
560
560
  rubyforge_project: spree_frontend
561
- rubygems_version: 2.2.2
561
+ rubygems_version: 2.2.0
562
562
  signing_key:
563
563
  specification_version: 4
564
564
  summary: Frontend e-commerce functionality for the Spree project.