Sha256: 071def8a7639e02579eb841a2ca2dda4e373a874c2abb8cc947d012c8b75189a

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

atom_feed do |feed|
  feed.title @current_storytime_site.title
  feed.updated @posts.maximum(:updated_at)
  
  @posts.each do |post|
    feed.entry post, published: post.published_at do |entry|
      entry.title post.title
      entry.content post.content
      entry.author do |author|
        author.name post.author_name
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 app/views/storytime/blogs/show.atom.builder
storytime-2.1.5 app/views/storytime/blogs/show.atom.builder
storytime-2.1.4 app/views/storytime/blogs/show.atom.builder
storytime-2.1.3 app/views/storytime/blogs/show.atom.builder
storytime-2.1.2 app/views/storytime/blogs/show.atom.builder
storytime-2.1.1 app/views/storytime/blogs/show.atom.builder
storytime-2.1.0 app/views/storytime/blogs/show.atom.builder
storytime-2.0.0 app/views/storytime/blogs/show.atom.builder