Sha256: ecbe46d96e7a8fbe72d7aa06feaf7a7e89aebf9a112fed8ed91e7252126d9028

Contents?: true

Size: 624 Bytes

Versions: 23

Compression:

Stored size: 624 Bytes

Contents

atom_feed(:language => I18n.locale.to_s) do |feed|
  feed.title "#{Setting.first.site_name}. #{t('activerecord.models.comments').capitalize}"
  feed.updated @comments.maximum(:updated_at)
  feed.language I18n.locale.to_s
  
  @comments.each do |comment|
    feed.entry comment, url: page_url(comment.page, anchor: "comment-#{comment.id}") do |entry|
      entry.title truncate comment.body, length: 30, separator: ' ...'
      entry.url page_url(comment.page, anchor: "comment-#{comment.id}")
      entry.content comment.body
      entry.author do |author|
        author.name comment.author.name
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tkh_content-0.9.16 app/views/comments/for_feed.atom.builder
tkh_content-0.9.15 app/views/comments/for_feed.atom.builder
tkh_content-0.9.14 app/views/comments/for_feed.atom.builder
tkh_content-0.9.13 app/views/comments/for_feed.atom.builder
tkh_content-0.9.12 app/views/comments/for_feed.atom.builder
tkh_content-0.9.11 app/views/comments/for_feed.atom.builder
tkh_content-0.9.10 app/views/comments/for_feed.atom.builder
tkh_content-0.9.9 app/views/comments/for_feed.atom.builder
tkh_content-0.9.8 app/views/comments/for_feed.atom.builder
tkh_content-0.9.7 app/views/comments/for_feed.atom.builder
tkh_content-0.9.6 app/views/comments/for_feed.atom.builder
tkh_content-0.9.5 app/views/comments/for_feed.atom.builder
tkh_content-0.9.4 app/views/comments/for_feed.atom.builder
tkh_content-0.9.3 app/views/comments/for_feed.atom.builder
tkh_content-0.9.2 app/views/comments/for_feed.atom.builder
tkh_content-0.4.7 app/views/comments/for_feed.atom.builder
tkh_content-0.9.1 app/views/comments/for_feed.atom.builder
tkh_content-0.9 app/views/comments/for_feed.atom.builder
tkh_content-0.4.6 app/views/comments/for_feed.atom.builder
tkh_content-0.4.5 app/views/comments/for_feed.atom.builder