Class: SitemapController

Inherits:
Refinery::FastController show all
Defined in:
app/controllers/sitemap_controller.rb

Instance Method Summary collapse

Methods inherited from Refinery::FastController

#wymiframe

Instance Method Details

#indexObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/sitemap_controller.rb', line 4

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