Module: SitemapsHelper
- Defined in:
- app/helpers/sitemaps_helper.rb
Instance Method Summary collapse
Instance Method Details
#with_every_locale(page) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/sitemaps_helper.rb', line 2 def with_every_locale(page) I18n.available_locales.each do |locale| I18n.with_locale locale do yield "http://#{request.host_with_port}#{page.path_with_prefixed_locale}" if page.path.present? && page.published? end end end |