Sha256: 8b329010af95a85314053ae41e96b18d2d02a0784cf36b729974cdc932e3ab28

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

atom_feed(:url => news_posts_url(:format => :atom)) do |feed|
  feed.title t('news_post.library_group_news_post', :library_group_name => @library_group.display_name.localize)
  feed.updated(@news_posts.first ? @news_posts.first.created_at : Time.zone.now)

  @news_posts.each do |news_post|
    feed.entry(news_post) do |entry|
      entry.title(news_post.title)
      entry.author(news_post.user.username)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_news-0.1.0.pre5 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre4 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre3 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre2 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre app/views/news_posts/index.atom.builder
enju_news-0.0.5 app/views/news_posts/index.atom.builder
enju_news-0.0.4 app/views/news_posts/index.atom.builder
enju_news-0.0.3 app/views/news_posts/index.atom.builder
enju_news-0.0.2 app/views/news_posts/index.atom.builder