refinerycms-products 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/category.rb +5 -2
- data/public/images/cart.png +0 -0
- data/public/images/corner.png +0 -0
- data/public/images/minus.png +0 -0
- data/public/images/plus.png +0 -0
- metadata +6 -2
data/app/models/category.rb
CHANGED
@@ -13,8 +13,11 @@ class Category < ActiveRecord::Base
|
|
13
13
|
has_many :children, :class_name => "Category", :foreign_key => "parent_id"
|
14
14
|
|
15
15
|
has_and_belongs_to_many :products
|
16
|
-
|
17
|
-
|
16
|
+
|
17
|
+
if defined?(Banner)
|
18
|
+
has_and_belongs_to_many :banners
|
19
|
+
end
|
20
|
+
|
18
21
|
# Docs for acts_as_nested_set https://github.com/collectiveidea/awesome_nested_set
|
19
22
|
acts_as_nested_set :dependent => :destroy # rather than :delete_all
|
20
23
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-products
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-03-23 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: acts-as-taggable-on
|
@@ -149,6 +149,10 @@ files:
|
|
149
149
|
- db/seeds/customers.rb
|
150
150
|
- db/seeds/line_items.rb
|
151
151
|
- db/seeds/products.rb
|
152
|
+
- public/images/cart.png
|
153
|
+
- public/images/corner.png
|
154
|
+
- public/images/minus.png
|
155
|
+
- public/images/plus.png
|
152
156
|
homepage: https://github.com/julesce/refinerycms-products
|
153
157
|
licenses: []
|
154
158
|
post_install_message:
|