Sha256: ea9608b2c4d2d14d74c4fe7bcc2ca883b9792f22833db0e5c3bc4d3fb6ce966c
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
class Spud::Cms::SitemapsController < Spud::ApplicationController respond_to :xml def show @pages = SpudPage.published_pages.is_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 |
---|---|
spud_cms-1.0.2 | app/controllers/spud/cms/sitemaps_controller.rb |
spud_cms-1.0.1 | app/controllers/spud/cms/sitemaps_controller.rb |