Fix rake bug.
This commit is contained in:
parent
23cba34a97
commit
b8adf0c227
|
@ -14,11 +14,13 @@ module Feeds
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
categorizable
|
categorizable
|
||||||
authorizable
|
authorizable
|
||||||
|
if File.basename($0) != 'rake'
|
||||||
begin
|
begin
|
||||||
avoid_page_cache SiteFeed
|
avoid_page_cache SiteFeed
|
||||||
rescue => e
|
rescue => e
|
||||||
puts ["avoid_page_cache", e.to_s]
|
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"
|
||||||
available_for "managers"
|
available_for "managers"
|
||||||
|
|
Loading…
Reference in New Issue