diff --git a/lib/tasks/feeds_tasks.rake b/lib/tasks/feeds_tasks.rake index 870614a..fcaed65 100644 --- a/lib/tasks/feeds_tasks.rake +++ b/lib/tasks/feeds_tasks.rake @@ -2,7 +2,7 @@ namespace :feeds_module do desc "Downloading feeds" 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) + FileUtils.mkdir_p(main_directory) if !File.exist?(main_directory) SiteFeedAnnc #Don't remove this, this will auto require SiteFeedAnnc SiteFeed.enabled.each do |site_feed| FeedModel::Cache.recreate_annc_cache(site_feed)