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