Sha256: 5c00288ba45b1270118e87eaaae99cb0ddecec29d3f9ccfe06f714c1be18f31e
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
module Kms module Public class SitemapsController < ActionController::Base respond_to :xml helper_method :site_url, :public_page_url def show @pages = Kms::Page.published respond_with @pages end def site_url 'http://' + request.host_with_port end def public_page_url(page) File.join(site_url, page.respond_to?(:permalink) ? page.permalink : page.fullpath) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems