Sha256: c310becc60428bf2d7aec3f6db09d26fcde92dc34d62bd395459eab7110197aa

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-core-0.9.9.22 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.21 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.20 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.19 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.18 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.17 app/controllers/sitemap_controller.rb
refinerycms-core-0.9.9.16 app/controllers/sitemap_controller.rb