Sha256: 4d62412511df8460accb38c2aad58a6290b7fc7b3d1dd6122d8b89684d6b9357

Contents?: true

Size: 473 Bytes

Versions: 11

Compression:

Stored size: 473 Bytes

Contents

module ::Refinery
  class SitemapController < ::Refinery::FastController
    layout nil

    def index
      headers['Content-Type'] = 'application/xml'

      respond_to do |format|
        format.xml do
          @locales = if defined?(::Refinery::I18n) && ::Refinery::I18n.enabled?
                       ::Refinery::I18n.frontend_locales
                     else
                       [::I18n.locale]
                     end
        end
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.9 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.8 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.7 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.6 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.5 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.4 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.3 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.2 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.1 app/controllers/refinery/sitemap_controller.rb
refinerycms-core-2.0.0 app/controllers/refinery/sitemap_controller.rb