Sha256: 305006e39882099b6b59f4e3cef46502c0aa6ee603a632f075c362c4fa60832a

Contents?: true

Size: 550 Bytes

Versions: 15

Compression:

Stored size: 550 Bytes

Contents

atom_feed(url: questions_url(format: :atom)) do |feed|
  if @user
    feed.title t('question.user_question', :login_name => @user.username)
  else
    feed.title t('question.library_group_question', library_group_name: @library_group.display_name.localize)
  end
  feed.updated(@questions.first ? @questions.first.created_at : Time.zone.now)

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

Version data entries

15 entries across 15 versions & 1 rubygems

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