Fix rake bug.

This commit is contained in:
BoHung Chiu 2022-06-13 15:19:23 +08:00
parent 23cba34a97
commit b8adf0c227
1 changed files with 6 additions and 4 deletions

View File

@ -14,10 +14,12 @@ module Feeds
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
categorizable categorizable
authorizable authorizable
begin if File.basename($0) != 'rake'
avoid_page_cache SiteFeed begin
rescue => e avoid_page_cache SiteFeed
puts ["avoid_page_cache", e.to_s] rescue => e
puts ["avoid_page_cache", e.to_s]
end
end end
side_bar do side_bar do
head_label_i18n 'feed.feed', icon_class: "icons-rss" head_label_i18n 'feed.feed', icon_class: "icons-rss"