Sha256: 00b0e143db16dbf07a931edf0650dc49f712342320e0d243b261a13f99da05c5

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

xml.instruct!
xml.urlset :xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9" do

  entries.each do |entry|
    xml.url do
      xml.loc polymorphic_url(entry[:object], entry[:params])
      entry[:search].each do |type, value|
        next if !value || value.blank?
        xml.tag! SEARCH_ATTRIBUTES[type], value.to_s
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sitemap-0.1 lib/views/index.xml.builder
sitemap-0.1b2 lib/views/index.xml.builder
sitemap-0.1b lib/views/index.xml.builder