Sha256: d83456300954e6ab0ddea14b3b3ea57bd5155c49f4d7d94f54cbb4200b25b740

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuhsaft-2.4.2 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.4.1 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.4.0 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.6 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.5 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.4 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.3 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.2 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.1 app/controllers/kuhsaft/sitemaps_controller.rb
kuhsaft-2.3.0 app/controllers/kuhsaft/sitemaps_controller.rb