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