Fix rake bug.
This commit is contained in:
parent
1633729511
commit
2067444a7e
|
@ -98,12 +98,14 @@ module Announcement
|
||||||
rescue => e
|
rescue => e
|
||||||
puts ['there_was_no_show_option_method',e]
|
puts ['there_was_no_show_option_method',e]
|
||||||
end
|
end
|
||||||
begin
|
if File.basename($0) != 'rake'
|
||||||
avoid_page_cache AnnsCache
|
begin
|
||||||
avoid_page_cache BulletinFeedCache
|
avoid_page_cache AnnsCache
|
||||||
avoid_page_cache BulletinFeed
|
avoid_page_cache BulletinFeedCache
|
||||||
rescue => e
|
avoid_page_cache BulletinFeed
|
||||||
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 'announcement.announcement', icon_class: "icons-megaphone"
|
head_label_i18n 'announcement.announcement', icon_class: "icons-megaphone"
|
||||||
|
|
Loading…
Reference in New Issue