Commit a42676f5042ad29d5eccb116c5651734bb4e538f
1 parent
70c00cdb
Exists in
master
and in
5 other branches
Add default articles to main_data task
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
lib/tasks/main_data.rake
@@ -72,6 +72,12 @@ namespace :main_data do | @@ -72,6 +72,12 @@ namespace :main_data do | ||
72 | box2.blocks << third_link_list_block | 72 | box2.blocks << third_link_list_block |
73 | box2.save! | 73 | box2.save! |
74 | puts "Third LinkListBlock successfully added to software!" | 74 | puts "Third LinkListBlock successfully added to software!" |
75 | + | ||
76 | + generate_article(community, Blog, {name: "Notícias", slug: "noticias", published: true, accept_comments: true, notify_comments: true, license_id: 1, body: "", accept_comments: false, posts_per_page: 5}) | ||
77 | + generate_article(community, TinyMceArticle, {name: "Sobre o Portal", slug: "sobre-o-portal", published: true, accept_comments: false, notify_comments: true, license_id: 1, body: "", accept_comments: false}) | ||
78 | + generate_article(community, TinyMceArticle, {name: "Publique seu software", slug: "publique-seu-software", published: true, accept_comments: false, notify_comments: true, license_id: 1, body: "", accept_comments: false}) | ||
79 | + generate_article(community, TinyMceArticle, {name: "Inicie um projeto", slug: "inicie-um-projeto", published: true, accept_comments: false, notify_comments: true, license_id: 1, body: "", accept_comments: false}) | ||
80 | + generate_article(community, TinyMceArticle, {name: "Entenda o que é", slug: "entenda-o-que-e", published: true, accept_comments: false, notify_comments: true, license_id: 1, body: "", accept_comments: false}) | ||
75 | end | 81 | end |
76 | end | 82 | end |
77 | end | 83 | end |