Sha256: 452c7f2916c40a720dd43ad3f9f3c138339b0d57ce658daed3d79a7c0fec684a
Contents?: true
Size: 379 Bytes
Versions: 6
Compression:
Stored size: 379 Bytes
Contents
class Spud::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
6 entries across 6 versions & 1 rubygems