Sha256: 5f6dfbd6ae3681ebdb14075aac0de910dfd909d37e906bb4835468725f5fe669

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module Qbrick
  class SitemapsController < ::ApplicationController
    def index
      last_page = Qbrick::Page.published.last
      return unless stale?(etag: last_page, last_modified: last_page.updated_at.utc)
      respond_to do |format|
        format.html
        format.xml { @pages = Qbrick::Page.published }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qbrick-2.5.2 app/controllers/qbrick/sitemaps_controller.rb
qbrick-2.5.1 app/controllers/qbrick/sitemaps_controller.rb
qbrick-2.5.0 app/controllers/qbrick/sitemaps_controller.rb