Class: Pageflow::FeedsController Private

Inherits:
ApplicationController show all
Defined in:
app/controllers/pageflow/feeds_controller.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#indexObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/pageflow/feeds_controller.rb', line 4

def index
  site = Site.for_request(request).first!
  return head 404 unless site.feeds_enabled?

  @feed = EntriesFeed.for(
    site: site,
    locale: params[:locale]
  )

  respond_to do |format|
    format.atom
  end
end