From c4c876c074a4ce512a370c2fa3b83c94aef8e150 Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 13 Jun 2022 16:19:03 +0800 Subject: [PATCH] Fix rake bug. --- lib/tasks/feeds_tasks.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/feeds_tasks.rake b/lib/tasks/feeds_tasks.rake index aba1eb5..7520137 100644 --- a/lib/tasks/feeds_tasks.rake +++ b/lib/tasks/feeds_tasks.rake @@ -3,6 +3,7 @@ namespace :feeds_module do task :make_cache,[:url] => :environment do |task,args| main_directory = File.join("#{Rails.root}","public","site_feeds") FileUtils.mkdir_p(main_directory) if !File.exists?(main_directory) + SiteFeedAnnc SiteFeed.enabled.each do |site_feed| feed_directory = File.join(main_directory.to_s, site_feed.id.to_s) FileUtils.mkdir_p(feed_directory) if !File.exists?(feed_directory)