Sha256: 7e73360b972452ae1d254f1fc057c43e0e9256da0959ef68f2377789ea700739

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

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

  store.entries.each do |entry|
    xml.url do
      xml.loc entry[:url] ? entry[:url] : 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

1 entries across 1 versions & 1 rubygems

Version Path
sitemap-0.3.3 lib/views/fragment.xml.builder