refinerycms-products 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- has_and_belongs_to_many :banners
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.2
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: 2011-11-15 00:00:00.000000000Z
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: