Fix rake bug.
This commit is contained in:
parent
b8adf0c227
commit
c4c876c074
|
@ -3,6 +3,7 @@ namespace :feeds_module do
|
||||||
task :make_cache,[:url] => :environment do |task,args|
|
task :make_cache,[:url] => :environment do |task,args|
|
||||||
main_directory = File.join("#{Rails.root}","public","site_feeds")
|
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.exists?(main_directory)
|
||||||
|
SiteFeedAnnc
|
||||||
SiteFeed.enabled.each do |site_feed|
|
SiteFeed.enabled.each do |site_feed|
|
||||||
feed_directory = File.join(main_directory.to_s, site_feed.id.to_s)
|
feed_directory = File.join(main_directory.to_s, site_feed.id.to_s)
|
||||||
FileUtils.mkdir_p(feed_directory) if !File.exists?(feed_directory)
|
FileUtils.mkdir_p(feed_directory) if !File.exists?(feed_directory)
|
||||||
|
|
Loading…
Reference in New Issue