Sha256: d97e81d0646ac848662b91e7788cfc6ec869ba03209aff145aa3ba6d0f8c0521

Contents?: true

Size: 283 Bytes

Versions: 23

Compression:

Stored size: 283 Bytes

Contents

module SitemapsHelper
  def locales_with_block(page)
    I18n.available_locales.each do |locale|
      I18n.with_locale locale do
        if page.url.present?
          url = "http://#{request.host_with_port}/#{page.url}"
          yield(url)
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/helpers/sitemaps_helper.rb
qbrick-2.6.0 app/helpers/sitemaps_helper.rb
qbrick-2.5.2 app/helpers/sitemaps_helper.rb
qbrick-2.5.1 app/helpers/sitemaps_helper.rb
qbrick-2.5.0 app/helpers/sitemaps_helper.rb
kuhsaft-2.6.2 app/helpers/sitemaps_helper.rb
kuhsaft-2.6.1 app/helpers/sitemaps_helper.rb
kuhsaft-2.5.2 app/helpers/sitemaps_helper.rb
kuhsaft-2.6.0 app/helpers/sitemaps_helper.rb
kuhsaft-2.5.1 app/helpers/sitemaps_helper.rb
kuhsaft-2.5.0 app/helpers/sitemaps_helper.rb
qbrick-2.5.0.pre app/helpers/sitemaps_helper.rb
kuhsaft-2.4.3 app/helpers/sitemaps_helper.rb
kuhsaft-2.4.2 app/helpers/sitemaps_helper.rb
kuhsaft-2.4.1 app/helpers/sitemaps_helper.rb
kuhsaft-2.4.0 app/helpers/sitemaps_helper.rb
kuhsaft-2.3.6 app/helpers/sitemaps_helper.rb
kuhsaft-2.3.5 app/helpers/sitemaps_helper.rb
kuhsaft-2.3.4 app/helpers/sitemaps_helper.rb
kuhsaft-2.3.3 app/helpers/sitemaps_helper.rb