ecm_products 2.0.6.pre → 2.0.8.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  class Ecm::Products::ProductsController < ApplicationController
2
2
  def index
3
- @products = ::Ecm::Products::Product.all
3
+ if params[:ecm_products_product_category_id]
4
+ @products = ::Ecm::Products::ProductCategory.find(params[:ecm_products_product_category_id]).ecm_products_products
5
+ else
6
+ @products = ::Ecm::Products::Product.all
7
+ end
4
8
  end
5
9
 
6
10
  def show
@@ -1,3 +1,5 @@
1
+ include ActiveAdmin::ActsAsList::Helper if defined?(ActiveAdmin)
2
+
1
3
  ::ActiveAdmin.register Ecm::Products::ProductLink do
2
4
  # menu entry settings
3
5
  menu :parent => Proc.new { I18n.t('ecm.products.active_admin.menu') }.call
@@ -38,7 +38,7 @@ include ActiveAdmin::ActsAsList::Helper if defined?(ActiveAdmin)
38
38
  # end
39
39
 
40
40
  # pp.inputs do
41
- pp.input :markup_language, :as => :select, :collection => Ecm::Products::ProductPicture::MARKUP_LANGUAGES
41
+ pp.input :markup_language, :as => :select, :collection => Ecm::Products::Configuration.markup_languages
42
42
  # end
43
43
  end # f.has_many
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module ECM
2
2
  module Products
3
- VERSION = "2.0.6.pre"
3
+ VERSION = "2.0.8.pre"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_products
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961916028
4
+ hash: 961915972
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 6
9
+ - 8
10
10
  - pre
11
- version: 2.0.6.pre
11
+ version: 2.0.8.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-09-26 00:00:00 Z
19
+ date: 2012-10-25 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails