Sha256: 3d88b8df511bb0ebb895055813c991086650aad1cd38f11d8e86b592e8e12c02
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qbrick-2.6.0 | app/controllers/qbrick/sitemaps_controller.rb |