Sha256: 822ae1c5ddfa3e973f7bbbdc1c29c321ecc9b507a23dc8af7271974bca417252
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
class Cms::SitemapsController < Spud::ApplicationController respond_to :xml 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] : 0) end respond_with @pages end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tb_cms-1.1.1 | app/controllers/cms/sitemaps_controller.rb |
tb_cms-1.1.0 | app/controllers/cms/sitemaps_controller.rb |