Sha256: 09330c99bbbc08ae30b85b27a34fa0d9bde795a0bf3020fe1eccd7f44c2f8ab6

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

module Pageflow
  # @api private
  class FeedsController < Pageflow::ApplicationController
    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/controllers/pageflow/feeds_controller.rb
pageflow-17.0.3 app/controllers/pageflow/feeds_controller.rb
pageflow-17.0.2 app/controllers/pageflow/feeds_controller.rb
pageflow-17.0.1 app/controllers/pageflow/feeds_controller.rb
pageflow-17.0.0 app/controllers/pageflow/feeds_controller.rb
pageflow-16.2.0 app/controllers/pageflow/feeds_controller.rb
pageflow-16.1.0 app/controllers/pageflow/feeds_controller.rb