From 0d14ffa23e0b69e27266524fb1a332e8688fe1ad Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 7 Apr 2016 16:35:36 +0800 Subject: [PATCH] now without title wont show --- app/controllers/announcement_feeds_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcement_feeds_controller.rb b/app/controllers/announcement_feeds_controller.rb index 85d83fb..a0075b7 100644 --- a/app/controllers/announcement_feeds_controller.rb +++ b/app/controllers/announcement_feeds_controller.rb @@ -68,7 +68,7 @@ class AnnouncementFeedsController < ApplicationController if !bf.nil? tags = bf.tag_ids if !tags.empty? - announcements = Bulletin.can_display.is_approved.filter_by_tags(tags) + announcements = Bulletin.where(:title.ne => "").can_display.is_approved.filter_by_tags(tags) else announcements = [] end