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
|
-
|
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
|
@@ -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::
|
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
|
data/lib/ecm/products/version.rb
CHANGED
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:
|
4
|
+
hash: 961915972
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 8
|
10
10
|
- pre
|
11
|
-
version: 2.0.
|
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-
|
19
|
+
date: 2012-10-25 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|