From 132a097aa69068e0e98754c39a52746d61b2f597 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 10 Dec 2010 13:54:00 -0300 Subject: [PATCH] Make it possible to add extra RSS feeds on blogs --- app/controllers/my_profile/cms_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index 4f611f1..7c27705 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -46,11 +46,6 @@ class CmsController < MyProfileController ] articles += special_article_types if params && params[:cms] parent_id = params ? params[:parent_id] : nil - if !parent_id or !Article.find(parent_id).has_posts? - articles += [ - RssFeed - ] - end if profile.enterprise? articles << EnterpriseHomepage end @@ -58,7 +53,7 @@ class CmsController < MyProfileController end def special_article_types - [Folder, Blog, UploadedFile, Forum, Gallery] + [Folder, Blog, UploadedFile, Forum, Gallery, RssFeed] end def view -- libgit2 0.21.2