Sha256: 8db8e2954a5159c97795dbf9246167691a974da067c8f666d97751c9ea154142

Contents?: true

Size: 524 Bytes

Versions: 15

Compression:

Stored size: 524 Bytes

Contents

atom_feed(url: answers_url(format: :atom)) do |feed|
  if @user
    feed.title t('answer.user_answer', :login_name => @user.username)
  else
    feed.title t('answer.library_group_answer', library_group_name: @library_group.display_name.localize)
  end
  feed.updated(@answers.first ? @answers.first.created_at : Time.zone.now)

  @answers.each do |answer|
    feed.entry(answer) do |entry|
      entry.title(truncate(answer.body))
      entry.author(answer.user.username)
      entry.content(answer.body)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_question-0.3.2 app/views/answers/index.atom.builder
enju_question-0.3.1 app/views/answers/index.atom.builder
enju_question-0.3.0 app/views/answers/index.atom.builder
enju_question-0.3.0.beta.1 app/views/answers/index.atom.builder
enju_question-0.2.0 app/views/answers/index.atom.builder
enju_question-0.2.0.beta.4 app/views/answers/index.atom.builder
enju_question-0.2.0.beta.3 app/views/answers/index.atom.builder
enju_question-0.2.0.beta.2 app/views/answers/index.atom.builder
enju_question-0.2.0.beta.1 app/views/answers/index.atom.builder
enju_question-0.1.1 app/views/answers/index.atom.builder
enju_question-0.1.0 app/views/answers/index.atom.builder
enju_question-0.1.0.pre15 app/views/answers/index.atom.builder
enju_question-0.1.0.pre14 app/views/answers/index.atom.builder
enju_question-0.1.0.pre13 app/views/answers/index.atom.builder
enju_question-0.1.0.pre12 app/views/answers/index.atom.builder