Sha256: da2cd9c1c755eac378cbc58b4722a727a6a1753ea2ebde5aa48bbbeb090c1dcc
Contents?: true
Size: 444 Bytes
Versions: 12
Compression:
Stored size: 444 Bytes
Contents
class Spud::Cms::SitemapsController < Spud::ApplicationController respond_to :xml caches_page :show,:expires_in => 1.day def show @pages = SpudPage.published_pages.public.order(:spud_page_id) if Spud::Core.multisite_mode_enabled site_config = Spud::Core.site_config_for_host(request.host_with_port) @pages = @pages.site(!site_config.blank? ? site_config[:site_id] : nil) end @pages = @pages.all respond_with @pages end end
Version data entries
12 entries across 12 versions & 1 rubygems