Add rake task to initialize feeds in homepage

This commit is contained in:
rgarcia
2018-05-29 19:58:37 +02:00
parent b672a4550d
commit 25133043b2

10
lib/tasks/homepage.rake Normal file
View File

@@ -0,0 +1,10 @@
namespace :homepage do
desc "Initialize feeds available in homepage"
task create_feeds: :environment do
%w(proposals debates processes).each do |kind|
Widget::Feed.create(kind: kind)
end
end
end