Sha256: f181bfe723b1f0f38566bda3314d1edf99135588e090601b273277ae0a63741d

Contents?: true

Size: 831 Bytes

Versions: 6

Compression:

Stored size: 831 Bytes

Contents

xml.instruct! :xml, version: "1.0", encoding: "utf-8"
xml.rss version: "2.0" do
  xml.channel do
    xml.title root.title
    xml.description root.summary
    xml.link Quadro.railtie_routes_url_helpers.root_url
    xml.image do
      xml.url absolute_url(root.cover.url(:small))
      xml.title root.title
      xml.link Quadro.railtie_routes_url_helpers.root_url
    end
    xml.generator Quadro::SIGNATURE

    root.descendants.published.ordered.each do |page|
      xml.item do
        xml.title page.title
        xml.description page.summary
        xml.link Quadro.railtie_routes_url_helpers.page_url(page)
        xml.pubDate l(page.published_at, format: :rss, locale: :en)
        xml.author page.author_email
        xml.guid Quadro.railtie_routes_url_helpers.page_url(page), isPermaLink: true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quadro-0.6.1 app/views/quadro/feeds/rss.xml.builder
quadro-0.6.0 app/views/quadro/feeds/rss.xml.builder
quadro-0.5.8 app/views/quadro/feeds/rss.xml.builder
quadro-0.5.7 app/views/quadro/feeds/rss.xml.builder
quadro-0.5.6 app/views/quadro/feeds/rss.xml.builder
quadro-0.5.5 app/views/quadro/feeds/rss.xml.builder