refinerycms-products 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/db/seeds/categories.rb +12 -12
- metadata +2 -2
data/db/seeds/categories.rb
CHANGED
@@ -7,15 +7,15 @@ if defined?(User)
|
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
|
-
if defined?(Page)
|
11
|
-
page = Page.create(
|
12
|
-
:title => 'Categories',
|
13
|
-
:link_url => '/categories',
|
14
|
-
:deletable => false,
|
15
|
-
:position => ((Page.maximum(:position, :conditions => {:parent_id => nil}) || -1)+1),
|
16
|
-
:menu_match => '^/categories(\/|\/.+?|)$'
|
17
|
-
)
|
18
|
-
Page.default_parts.each do |default_page_part|
|
19
|
-
page.parts.create(:title => default_page_part, :body => nil)
|
20
|
-
end
|
21
|
-
end
|
10
|
+
#if defined?(Page)
|
11
|
+
# page = Page.create(
|
12
|
+
# :title => 'Categories',
|
13
|
+
# :link_url => '/categories',
|
14
|
+
# :deletable => false,
|
15
|
+
# :position => ((Page.maximum(:position, :conditions => {:parent_id => nil}) || -1)+1),
|
16
|
+
# :menu_match => '^/categories(\/|\/.+?|)$'
|
17
|
+
# )
|
18
|
+
# Page.default_parts.each do |default_page_part|
|
19
|
+
# page.parts.create(:title => default_page_part, :body => nil)
|
20
|
+
# end
|
21
|
+
#end
|
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.4
|
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: 2012-03-
|
13
|
+
date: 2012-03-26 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: acts-as-taggable-on
|