From 97dd61fc52d7543c5fd974124a62670ea5220bd8 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 7 Apr 2020 22:08:52 +0800 Subject: [PATCH] fix error --- lib/tasks/feeds_tasks.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/feeds_tasks.rake b/lib/tasks/feeds_tasks.rake index f0927f7..23c128f 100644 --- a/lib/tasks/feeds_tasks.rake +++ b/lib/tasks/feeds_tasks.rake @@ -11,7 +11,7 @@ namespace :feeds_module do req = Net::HTTP::Get.new(uri) http.request(req).body rescue '' end - File.open(File.join(feed_directory.to_s,self.feed_uid + ".json"),"w") do |file| + File.open(File.join(feed_directory.to_s,site_feed.feed_uid + ".json"),"w") do |file| res.force_encoding("utf-8") file.write(res) end