Sha256: acb681dec6ccf5cc5711c5dc34a8a70b548b7a3b7c2af5ec27cff9fbca9559b4
Contents?: true
Size: 514 Bytes
Versions: 22
Compression:
Stored size: 514 Bytes
Contents
cache ['rss', Post.posts.publicly_viewable.order(publish_at: :desc).first, 'feed'] do @posts = Post.posts.publicly_viewable.order(publish_at: :desc).limit(@limit) xml.instruct! :xml, :version => "1.0" xml.rss(version: '2.0', "xmlns:media" => "http://search.yahoo.com/mrss") { xml.channel { xml.title(site.name}) xml.link(request.host) xml.description(site.description) @posts.each do |post| cache post do rss_post(xml, post) end end } } end
Version data entries
22 entries across 12 versions & 1 rubygems