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