Sha256: 7a09f67f24a0ad520ac3d466f8a8813cf16a44b70cc20c5de1fcbd2d661c1fb1

Contents?: true

Size: 414 Bytes

Versions: 25

Compression:

Stored size: 414 Bytes

Contents

atom_feed do |feed|
  feed.title "#{@user.username}'s Inbox"
  feed.updated(@messages.first ? @messages.first.created_at : Time.zone.now)

  @messages.each do |message|
    feed.entry(message, url: message_url(message)) do |entry|
     entry.title   message.subject
      entry.content message.body, type: 'html'

      entry.author do |author|
        author.name message.sender.login
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
enju_message-0.1.14.pre19 app/views/messages/index.atom.builder
enju_message-0.1.14.pre18 app/views/messages/index.atom.builder
enju_message-0.1.14.pre17 app/views/messages/index.atom.builder
enju_message-0.1.14.pre16 app/views/messages/index.atom.builder
enju_message-0.1.14.pre15 app/views/messages/index.atom.builder