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