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.2.4 app/views/messages/index.atom.builder
enju_message-0.2.3 app/views/messages/index.atom.builder
enju_message-0.2.2 app/views/messages/index.atom.builder
enju_message-0.2.1 app/views/messages/index.atom.builder
enju_message-0.2.0 app/views/messages/index.atom.builder
enju_message-0.2.0.beta.5 app/views/messages/index.atom.builder
enju_message-0.2.0.beta.4 app/views/messages/index.atom.builder
enju_message-0.2.0.beta.3 app/views/messages/index.atom.builder
enju_message-0.2.0.beta.2 app/views/messages/index.atom.builder
enju_message-0.2.0.beta.1 app/views/messages/index.atom.builder
enju_message-0.1.16 app/views/messages/index.atom.builder
enju_message-0.1.15 app/views/messages/index.atom.builder
enju_message-0.1.14 app/views/messages/index.atom.builder
enju_message-0.1.14.pre26 app/views/messages/index.atom.builder
enju_message-0.1.14.pre25 app/views/messages/index.atom.builder
enju_message-0.1.14.pre24 app/views/messages/index.atom.builder
enju_message-0.1.14.pre23 app/views/messages/index.atom.builder
enju_message-0.1.14.pre22 app/views/messages/index.atom.builder
enju_message-0.1.14.pre21 app/views/messages/index.atom.builder
enju_message-0.1.14.pre20 app/views/messages/index.atom.builder