Sha256: 0b0b020783e6447c3857b7c3f9981f589db3fc4fe7500750fe0e171dc954749c

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

module Kuhsaft
  class SitemapsController < ::ApplicationController
    def index
      last_page = Kuhsaft::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 = Kuhsaft::Page.published }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.6.2 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.6.1 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.5.2 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.6.0 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.5.1 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.5.0 app/controllers/kuhsaft/sitemaps_controller.rb
qbrick-2.5.0.pre app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.4.3 app/controllers/kuhsaft/sitemaps_controller.rb