class AnnouncementsController < PublicFacingController
  def index
    params[:page] ||= 1
    params[:direction] ||= "before"
    @filter = Whitehall::DocumentFilter.new(all_announcements, params)
    respond_to do |format|
      format.html
      format.json do
        render json: AnnouncementFilterJsonPresenter.new(@filter)
      end
    end
  end

private

  def all_announcements
    Announcement.published
      .includes(:document, :organisations)
  end
end

class AnnouncementsController < PublicFacingController

  def index
    params[:page] ||= 1
    params[:direction] ||= "before"
    @filter = Whitehall::DocumentFilter.new(all_announcements, params)
    respond_to do |format|
      format.html
      format.json do
        render json: AnnouncementFilterJsonPresenter.new(@filter)
      end
      format.atom do
        @publications = @filter.documents.by_published_at
      end
    end
  end

private

  def all_announcements
    Announcement.published
      .includes(:document, :organisations)
  end

end

--- 
+++ 
@@ -1,5 +1,4 @@
 class AnnouncementsController < PublicFacingController
-
   def index
     params[:page] ||= 1
     params[:direction] ||= "before"
@@ -8,9 +7,6 @@
       format.html
       format.json do
         render json: AnnouncementFilterJsonPresenter.new(@filter)
-      end
-      format.atom do
-        @publications = @filter.documents.by_published_at
       end
     end
   end
@@ -21,5 +17,4 @@
     Announcement.published
       .includes(:document, :organisations)
   end
-
 end
Remove broken and untested announcement atom feed
